diff --git a/src/kemal/file_upload.cr b/src/kemal/file_upload.cr index 4340a24..c41b43b 100644 --- a/src/kemal/file_upload.cr +++ b/src/kemal/file_upload.cr @@ -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 \ No newline at end of file +end