<br><br><div><span class="gmail_quote">On 22/03/06, <b class="gmail_sendername">AB</b> <<a href="mailto:amy-g-art@cox.net">amy-g-art@cox.net</a>> wrote:</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">><br>> try something like this:<br>> filename = os.path.basename(fullpathname)<br>
<br>I tried the following with the same result:<br>myName = ulImage.filename<br>newFile = file (os.path.join(upload_dir, os.path.basename(myName)), 'wb')<br><br>Any other ideas?  Seems like it shouldn't be a browser issue though...
</blockquote><div><br>
<br>
In Karrigell,  this upload script works in IE and firefox,   and the basics are similar to yours.<br>
<br>
import os<br>
f = _myfile.file # file-like object<br>
dest_name = os.path.basename(_myfile.filename)<br>
out = open('c:/WINNT/Profiles/tw/Desktop/webupload/'+dest_name,'wb')<br>
# copy file<br>
import shutil<br>
shutil.copyfileobj(f,out)<br>
out.close()<br>
print "File Uploaded Succesfully" #print to browser<br>
<br>
Maybe your cgi is returning something strange, have you tried some
print statements to see what's going on at various parts of the script ?<br>
</div><br></div>