remove useless comment

This commit is contained in:
Philippe PITTOLI 2020-01-30 20:01:46 +01:00
parent a9aea04a27
commit 6bca59c293

View File

@ -58,6 +58,7 @@ def hdl_upload(request : FileStorage::UploadRequest, user : User) : FileStorage:
pp! request pp! request
# TODO: verify the rights and quotas of the user # TODO: verify the rights and quotas of the user
# file_info attributes: name, size, nb_chunks, digest, tags
# First: check if the file already exists # First: check if the file already exists
transfer_info = Context.db_by_filedigest.get? request.file.digest transfer_info = Context.db_by_filedigest.get? request.file.digest
@ -71,12 +72,6 @@ def hdl_upload(request : FileStorage::UploadRequest, user : User) : FileStorage:
# In this case: ignore the upload request # In this case: ignore the upload request
end end
# file_info.name
# file_info.size
# file_info.nb_chunks
# file_info.digest
# file_info.tags
FileStorage::Response.new request.mid, "Upload OK" FileStorage::Response.new request.mid, "Upload OK"
rescue e rescue e
puts "Error handling transfer: #{e.message}" puts "Error handling transfer: #{e.message}"