From: Lawrence A. <la...@us...> - 2002-10-14 22:45:10
|
On Monday 14 Oct 2002 11:35 pm, Jeff Dairiki wrote: > > Is it possible to create a plugin-form which has an input box of > > type=3D"file"? > > In spite of the dregs of code in WikiPlugin::makeForm which would hint > otherwise, I don't think you can do it (without code changes). (The > remnant code seems to be completely my fault, but at this point, I have > no recollection of why it's there...) > Aha. I wondered if I was missing something. > I'm not sure exactly about what kind of user interface you're thinking = of, > but I'm thinking it would be best if the FileUpload plugin produced the > file upload form itself. =20 Last night, I had coded this. Then I decided I really ought to use the=20 plugin-form api since it was there. Good job I only commented out my ear= lier=20 code, rather than deleting it then! What I had in mind was: data posted to plugin : plugin uploads file plugin called as form (eg with ?show=3Dform or something like that): plu= gin=20 shows form, allowing file to be chosen for upload plugin called in any other way: plugin displays list of attachments on t= his=20 (or another specified) page. Lawrence |