tags:

views:

101

answers:

1

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()

+3  A: 

No, that information isn't sent by the user, so it's not available on your end

Michael Mrozek
It seems it could be done with Javascript. A function could read the browse field path, put it in a hidden textfield and submit it with the form?
Ali
JavaScript runs on the remote user's end. Python runs on your CGI server. What you say is true, you could combine the two technologies.
Johnsyweb