[Zope] upload file from filename

John Hunter jdhunter@ace.bsd.uchicago.edu
Fri, 01 Mar 2002 08:21:45 -0600


>>>>> "John" == John Ziniti <jziniti@speakeasy.org> writes:

    John> You really need to send in the "filename" as the value of a
    John> browser "<input type=file>" form element.  In short, the
    John> file name is not enough info ... the form element passes in
    John> a file handle as well, allowing the upload.

Yes, I've been reading some of the HTTPRequest source code to try and
figure out how this is done, but no luck yet.  If anyone knows how to
construct this object from a filename/path etc so that it could be
used with manage_addFile, I would be much obliged.

Thanks,
John Hunter