mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
parent
e0511743b1
commit
d0c034b911
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ module Kemal
|
|||
|
||||
private def parse_file_upload
|
||||
HTTP::FormData.parse(@request) do |upload|
|
||||
next unless upload
|
||||
next unless upload && upload.size
|
||||
filename = upload.filename
|
||||
if !filename.nil?
|
||||
@files[upload.name] = FileUpload.new(upload: upload)
|
||||
|
|
Loading…
Reference in a new issue