parent
e0511743b1
commit
d0c034b911
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ module Kemal
|
||||||
|
|
||||||
private def parse_file_upload
|
private def parse_file_upload
|
||||||
HTTP::FormData.parse(@request) do |upload|
|
HTTP::FormData.parse(@request) do |upload|
|
||||||
next unless upload
|
next unless upload && upload.size
|
||||||
filename = upload.filename
|
filename = upload.filename
|
||||||
if !filename.nil?
|
if !filename.nil?
|
||||||
@files[upload.name] = FileUpload.new(upload: upload)
|
@files[upload.name] = FileUpload.new(upload: upload)
|
||||||
|
|
Loading…
Reference in a new issue