Re: uploading files to file system/zipping/downloading problems

2006-08-21 Thread Larry Bates
OriginalBrownster wrote: > I am currently uploading a file from a users computer to the file > system on my server using python, just reading the file and writing the > binaries. > > total_data=' ' > while True: > data = upload_file.file.read(8192) > if not

Re: uploading files to file system/zipping/downloading problems

2006-08-20 Thread Jordan
Assuming your upload_file.file.read() function works, the overwriting should be the only issue. Just want to point out that total_data += data is not advisable for this example (speed/efficiency issue, although i'm sure it could probably be even faster than what I replace it with if u decided to u

Re: uploading files to file system/zipping/downloading problems

2006-08-20 Thread Pontus Ekberg
On Sun, 20 Aug 2006 13:49:22 -0700, OriginalBrownster wrote: > I am currently uploading a file from a users computer to the file > system on my server using python, just reading the file and writing the > binaries. > > total_data=' ' > while True: > data = upload_file.

Re: Uploading files from IE

2006-03-23 Thread and-google
AB wrote: > I tried the following with the same result: > myName = ulImage.filename > newFile = file (os.path.join(upload_dir, os.path.basename(myName)), 'wb') os.path is different on your system to the uploader's system. You are using Unix pathnames, with a '/' separator - they are using Windows

Re: Uploading files from IE

2006-03-22 Thread Tim Williams (gmail)
On 22/03/06, AB <[EMAIL PROTECTED]> wrote: >> try something like this:> filename = os.path.basename(fullpathname) I tried the following with the same result:myName = ulImage.filenamenewFile = file (os.path.join(upload_dir, os.path.basename(myName)), 'wb')Any other ideas?  Seems like it shouldn't be

Re: Uploading files from IE

2006-03-22 Thread AB
"Irmen de Jong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 nam

Re: Uploading files from IE

2006-03-22 Thread Irmen de Jong
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 uplo

Re: uploading files to a webdav SSL enabled server

2005-05-26 Thread Paul Boddie
rbt <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Has anyone used pure python to upload files to a webdav server over SSL? > I have no control over the server. I can access it with all of the > various webdav GUIs such as Konqueror, Cadaver, etc. by using a URL like > this

Re: uploading files to a webdav SSL enabled server

2005-05-25 Thread Peter Hansen
rbt wrote: > Has anyone used pure python to upload files to a webdav server over SSL? We were not using SSL at the time (since it wasn't supported in standard Python, as I recall), but we successfully used the webdav client that was part of Zope a few years ago. I suspect you could adapt it to

Re: Uploading files

2005-01-11 Thread Peter Mott
Thanks for this. Peter "Robert Brewer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Peter Mott wrote: > If you upload a file using the cgi module is there any > way to discover the file name that the user submitted > as well as the file data? I've googled till I squint > but I can

RE: Uploading files

2005-01-10 Thread Robert Brewer
Peter Mott wrote: > If you upload a file using the cgi module is there any > way to discover the file name that the user submitted > as well as the file data? I've googled till I squint > but I can't find anything. Working example (for ASP, which uses BinaryRead to get the request stream): conten