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.
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
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
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
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
11 matches
Mail list logo