Get Path of Uploaded File using Python
Posted
by Ali
on Stack Overflow
See other posts from Stack Overflow
or by Ali
Published on 2010-05-27T01:53:55Z
Indexed on
2010/05/27
2:01 UTC
Read the original article
Hit count: 289
Is it possible to get the full path of the file on the user's computer being uploaded to my site?
Using os.path.abspath(fileitem.filename)
simply gets me the address of where my script is executing from on my shared hosting server.
FYI: fileitem = form['file'] and form = cgi.FieldStorage()
© Stack Overflow or respective owner