Re: [Zope] Stupid File Upload Question

2000-12-18 Thread jpenny
Sent: Friday, December 15, 2000 4:22 PM > Subject: [Zope] 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

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: > > Of course, that should be ENCTYPE instead of the second METHOD attribute name: As an aside, I found the following page to be a useful example of Zope file-upload handlin

Re: [Zope] Stupid File Upload Question

2000-12-15 Thread Jonothan Farr
What sort of problems were you seeing with LocalFS? Maybe I can fix them. Thanks, --jfarr - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 15, 2000 4:22 PM Subject: [Zope] Stupid File Upload Question > This is for Jos: >

[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: ... Then you should be able to access REQUEST.form['attachment'].filename and REQUEST.form['attachment'].re

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 (sour

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
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: So

Re: [Zope] stupid file upload question

2000-12-14 Thread Dieter Maurer
Joh Johannsen writes: > 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 reference things like: > >

[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 referen