Hi Ferran,

In data venerdì 3 maggio 2013 14:23:23, Ferran Jorba ha scritto:
> it turns out that I have several mod_python scripts to handle local file
> uploading needs.  After many hours of digging in, I have confirmed that
> file uploading is not implemented under the simplified Invenio
> SimulatedModPythonRequest.  Is that right?

yep, it is :-)

Simply if you set up an HTML form that has a file element, say called “file”, 
then in req does everything (as in mod_python), in req.form (which behaves 
like a dictionary), you will find the “file” key that has special properties 
(e.g. you can call req[‘form’].filename to retrieve the intended filename, and 
you can call req[‘form’].file to obtain an open stream to the read the content 
of the file.

Cheers!
        Sam
-- 
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>
INSPIRE Service Manager ** <http://inspirehep.net/>

Reply via email to