mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-05 04:15:35 -04:00
Remove debug code in upload handler
This commit is contained in:
parent
8506044232
commit
ce5f444012
@ -11,14 +11,10 @@ class UploadHandler < Kemal::Handler
|
|||||||
return call_next env
|
return call_next env
|
||||||
end
|
end
|
||||||
|
|
||||||
pp env.request.path
|
|
||||||
|
|
||||||
ary = env.request.path.split(File::SEPARATOR).select { |part| !part.empty? }
|
ary = env.request.path.split(File::SEPARATOR).select { |part| !part.empty? }
|
||||||
ary[0] = @upload_dir
|
ary[0] = @upload_dir
|
||||||
path = File.join ary
|
path = File.join ary
|
||||||
|
|
||||||
pp path
|
|
||||||
|
|
||||||
if File.exists? path
|
if File.exists? path
|
||||||
send_file env, path
|
send_file env, path
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user