Uploading files to an an FTP site through a proxy server which requires authentication

2011-02-09 Thread tkp...@hotmail.com
I would like to upload files to a ftp site, but can't seem to get through our proxy server, which requires authentication. How can one do this in Python (I use 2.7, but am more than happy to use 3.2 rc2) Thanks in advance Thomas Philips -- http://mail.python.org/mailman/listinfo/python-list

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.

uploading files to file system/zipping/downloading problems

2006-08-20 Thread OriginalBrownster
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 data: break t

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

Uploading files from IE

2006-03-22 Thread AB
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 i

Re: uploading files to a webdav SSL enabled server

2005-05-26 Thread Paul Boddie
/ http://cvs.infrae.com/packages/pydavclient/dav/ Really it's just a matter of talking HTTP to a server and parsing the special messages that are returned for certain request methods, but you may not even need to do that if you're just uploading files. Paul -- http://mail.python.org/mailman/listinfo/python-list

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

uploading files to a webdav SSL enabled server

2005-05-25 Thread rbt
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: webdavs://dav.hostname.com/user_name/uploads My goal is to upload files a

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

Uploading files

2005-01-10 Thread Peter Mott
If you upload a file using the cgi module is there anyway 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. Peter -- http://mail.python.org/mailman/listinfo/python-list