[mod_python] Re: Mike's psp upload

sandip more sandipm at talentica.com
Tue Jun 13 07:22:42 EDT 2006

hello all,
 I am also trying to implement file upload functionality with psp. I didn't get the use of callback function. 
I am able to access the data of uploaded file with following code.

frm = util.FieldStorage(req)
for afile in frm.getlist('UploadFile'):
    filedata = afile.file.read()
    #write filedata to some file in local directory with name afile.filename.

can someone explain me..what is the need of this callback function? also how it works?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20060613/0b8f0247/attachment.html

More information about the Mod_python mailing list