Module ringo/webapp/fileupload
Functions
- isFileUpload(contentType)
- parseFileUpload(env, params, encoding)
isFileUpload (contentType)
Find out whether the content type denotes a format this module can parse.
Parameters
| contentType | a HTTP request Content-Type header |
Returns
| true if the content type can be parsed as form data by this module |
parseFileUpload (env, params, encoding)
Rough but working first draft of file upload support. Everything's done in memory so beware of large files.
Parameters
| env | the JSGI env object | |
| params | the parameter object to parse into | |
| encoding | the encoding to apply to non-file parameters |
