Commit 4049b3b4 authored by Valéry Tschopp's avatar Valéry Tschopp

upload key empty (if)

parent 981eab2e
......@@ -44,6 +44,7 @@ post "/upload" do
key = params['file'][:filename]
if not key.empty?
s3.put_object({bucket: S3_BUCKET_NAME, key: key, body: params['file'][:tempfile].read})
end
redirect to('/')
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment