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
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
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
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.
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
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
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
"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
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
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
/
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
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
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
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
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
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
16 matches
Mail list logo