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