Re: [Zope] Stupid File Upload Question

2000-12-18 Thread jpenny
] Stupid File Upload Question This is for Jos: I ran into the same problem today. I had previously used this method, and it works better than LocalFS for my purposes. Anyway, be absolutly sure that your form says: Fiest, LocalFS turns out to have the same problem. MSIE does

Re: [Zope] Stupid File Upload Question

2000-12-16 Thread Fred Yankowski
On Fri, Dec 15, 2000 at 07:22:43PM -0500, [EMAIL PROTECTED] wrote: Anyway, be absolutly sure that your form says: form method=post action=whatever method="multipart/form-data" Of course, that should be ENCTYPE instead of the second METHOD attribute name: form method=post action=whatever

[Zope] Stupid File Upload Question

2000-12-15 Thread jpenny
This is for Jos: I ran into the same problem today. I had previously used this method, and it works better than LocalFS for my purposes. Anyway, be absolutly sure that your form says: form method=post action=whatever method="multipart/form-data" ... /form Then you should be able to access

Re: [Zope] stupid file upload question

2000-12-14 Thread Joh Johannsen
Thanks for the responses. My first message was a little unclear... Here is what I am doing in more detail: On the client side (me), I have a windows machine, and I am uploading a file: "E:\test\my_file" On the server, I am running Zope on Linux. My upload form looks like this: dtml-var

Re: [Zope] stupid file upload question

2000-12-14 Thread Dieter Maurer
Joh Johannsen writes: What sort of object is this "REQUEST.form['attached_file']"? Is there some way to find out this sort of thing when you have a Python object? (I'm new to Python) It is a "ZPublisher.HTTPRequest.FileUpload" object. From its (source) documentation: File upload

Re: [Zope] stupid file upload question

2000-12-14 Thread Joh Johannsen
Dieter Maurer wrote: Joh Johannsen writes: What sort of object is this "REQUEST.form['attached_file']"? Is there some way to find out this sort of thing when you have a Python object? (I'm new to Python) It is a "ZPublisher.HTTPRequest.FileUpload" object. From its (source)

[Zope] stupid file upload question

2000-12-13 Thread Joh Johannsen
OK, there is a How-To on that, which is helpful, by benno But it says: "In you python external method you can now reference REQUEST.form['attached_file'] as a normal file. You can perform things such as read() on the object. " Now in my Python external method, I can