Skip to content

Param type Rack::Multipart::UploadedFile does not result in object of that type #1164

Closed
@alexandergitter

Description

@alexandergitter

Declaring a parameter as Rack::Multipart::UploadedFile doesn't seem to actually yield a parameter of the same type. Instead I'm getting instances of Hashie::Mash.

The endpoint i use to test this looks as follows:

params do
  requires :avatar, type: Rack::Multipart::UploadedFile
end
post '/' do
  ...
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions