ca2longoria / spritely

A reimagining of the unfinished charasprite project, but this time using a preexisting local Java web server, nanohttpd.
Other
0 stars 0 forks source link

Functional image file upload #1

Closed ca2longoria closed 10 years ago

ca2longoria commented 10 years ago

Summary

Here's the part that killed the charasprite project (short life regardless). Time for an input-file element to push data to Spritely, and for Spritely to receive.

Honestly, at this point, I've had to do a fair amount of investigation into the multipart/file-data format, such that it might have been less work to do said research and write the request body data parser, myself, rather than relying on nanohttpd's SimpleWebServer class.

Redoing in NanoHTTPD, itself.


Concrete Requirements

ca2longoria commented 10 years ago

SimpleWebServer seems to override NanoHTTPD's mulipart/form-data functionality, which is awful and makes no sense. Reverting usage to NanoHTTPD, and building our own simple server from there. Hopefully, it'll handle regular files just fine, already, and this won't involve too much labor.