cgi type=file problems

Oleg Broytmann phd at phd.pp.ru
Mon Sep 3 06:18:41 EDT 2001


On Mon, 3 Sep 2001, Dag wrote:
D> Thanks, but unfortunately this doesn't quite seem to work the way I want it
D> to.  adding enctype="multipart/form-data" seems to makes the script upload
D> the entire file, which is something I want to avoid, since I only need the
D> filename and just want to use the file browsing to simplify entering the
D> data, and make sure no typos are made.  Copying several megs across the
D> network to simply extract a 50 byte string seems a bit of a waste.

   Then you should avoid <input type=file>. Use <input type=text> instead.

Oleg.
----
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list