restxq file upload with no file selected

Friday, 10 January 2014 · 2 messages · last reply 11 Jan 2014
AB
Andy Bunce10 Jan 2014 18:55 #
Hi, In the case where I submit a form with an input type= "file" without selecting a file. The server side map [1] has one entry with empty name and content. It seems to me it would be more useful to return an empty map in this case. Regards /Andy [1] http://docs.basex.org/wiki/RESTXQ#File_Uploads
CG
Christian Grün11 Jan 2014 17:59 #
Quoted text · Andy Bunce · 4 lines
> In the case where I submit a form with an input type= "file" without > selecting a file. > The server side map [1] has one entry with empty name and content. It seems > to me it would be more useful to return an empty map in this case.
…done. For some historical reason, the multipart protocol generates an entry even if no files have been selected. Such empty entries are now ignored.
Quoted text · Andy Bunce · 10 lines
> Regards > /Andy > > [1] http://docs.basex.org/wiki/RESTXQ#File_Uploads > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >

⚡Generated with XQuery