Move file_upload to namespace

This commit is contained in:
Sdogruyol 2017-02-13 22:57:58 +03:00
parent e4e71541e7
commit c6ff2c5d2e

View file

@ -1,12 +1,14 @@
# :nodoc:
struct FileUpload
getter tmpfile : Tempfile
getter tmpfile_path : String
getter filename : String
getter meta : HTTP::FormData::FileMetadata
getter headers : HTTP::Headers
module Kemal
struct FileUpload
getter tmpfile : Tempfile
getter tmpfile_path : String
getter filename : String
getter meta : HTTP::FormData::FileMetadata
getter headers : HTTP::Headers
def initialize(@tmpfile, @tmpfile_path, @meta, @headers)
@filename = @meta.filename.not_nil!
def initialize(@tmpfile, @tmpfile_path, @meta, @headers)
@filename = @meta.filename.not_nil!
end
end
end
end