From: Jamie C. <jca...@we...> - 2011-01-12 04:09:15
|
On 11/Jan/2011 19:22 Jeffrey Kesselman <je...@np...> wrote .. > I want to only allow my users to upload and delte fiels from specific > directories so I am building my own file management interface. > > Is there a minimal working example of both setting up the ui_upload > interface and handling the resulting form-data? > > Its all a bit greek to me right at the moment... The code for the form would be like : print ui_form_start("upload.cgi", "form-data"); print "Choose a file : ",ui_upload("file"); print ui_form_end([ [ "ok", "Upload" ] ]); And for the parser upload.cgi : ReadParseMime(); open(FILE, ">/path/to/destfile"); print FILE $in{'file'}; close(FILE); - Jamie |