You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by Massimo Manghi <mx...@apache.org> on 2020/01/06 17:44:11 UTC

fixing and improving the upload command

Happy 2020 to everyone

Even though Rivet_Upload validates the argument list so that the various 
subcommands have their demanded number of arguments, I recently found 
out a case (IIRC [::rivet::upload filename ...]) that crashed if called 
with a wrong number of arguments

Thus I created the branch uploadcmdfix with a fix and a revision of the 
argument checking code hopefully more linear and easy to read.

This rekindled my interest in improving the multipart form data handling 
that long ago had been silently abandoned.

For example mod_rivet can't get multipart/mixed form data with nested 
boundaries like in the example

https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2

In fact I can't upload multiple files, even though the ::rivet::upload 
command interface is obviously designed also to this purpose.

Exploiting libapreq2 through mod_apreq2 could be an option? Or something 
like rebase the apache_request.c functions on libapreq2 is a better 
option? Suggestions are welcome. Documentation in this respect is scant 
and incomplete. Does anyone of other content generators that got it 
right? Perhaps mod_perl?

   -- Massimo



---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org