[Zope] Stupid File Upload Question

jpenny@universal-fasteners.com jpenny@universal-fasteners.com
Fri, 15 Dec 2000 19:22:43 -0500


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 REQUEST.form['attachment'].filename
and REQUEST.form['attachment'].read()  (Well, I hope).

If the method=post is omitted, Netscape (linux at least) will work.
MSIE will not.

Man I ain't got enough hair for these kinds of problems!

Jim Penny