-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File: add support for File/UploadedFile types #103
Comments
gi
added a commit
to gi/sinatra-param
that referenced
this issue
Oct 2, 2020
With a type declaration of `File`, the input parameter hash of the uploaded file is coerce into a new UploadedFile object which conforms to the `Rack::Multipart::UploadedFile` interface. The input parameter hash must be of the shape: - `filename`: the original file name of the uploaded file - `head`: the header lines of the multipart request - `name`: the parameter name - `tempfile`: the `Tempfile` created from the content of the multipart request - `type`: the content media/MIME type Fixes mattt#103
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be nice to have support for uploaded files:
This would coerce the parameter into an object that conforms to Rack::Multipart::UploadedFile.
The text was updated successfully, but these errors were encountered: