Uploading files from IE

Irmen de Jong irmen.NOSPAM at xs4all.nl
Wed Mar 22 17:40:10 EST 2006


AB wrote:
> All right... I already hated IE.  But, now I do even more.  My scripts 
> upload function is working in Firefox, but not in IE.  If I upload a file 
> from Internet Explorer I get a file on the system named for the full path 
> from the users computer...
> 
> example...
> They user uploads C:\mydocs\test.jpg
> it ends up at /path/to/webdir/C:\mydocs\test.jpg
> instead of /path/to/webdir/test.jpg

try something like this:
filename = os.path.basename(fullpathname)

--Irmen



More information about the Python-list mailing list