Skip to content
Snippets Groups Projects
Commit 276e6b43 authored by Giovanne Marcelo's avatar Giovanne Marcelo
Browse files

Merge branch '206-fix-authentication-problem-user-logins-stop-without-user-command' into 'master'

fixed file uploads directory to be unique

See merge request !396
parents 45c8319c d1a7af37
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,10 @@ class V1::LearningObjects::ChunksController < ApplicationController
if last_chunk?
combine_file!
post_file!
# TODO render new attachment ID
render status: 200
return
end
render status: 200
......@@ -108,7 +112,7 @@ class V1::LearningObjects::ChunksController < ApplicationController
##
# /tmp/file-chunks
def final_file_directory
File.join('tmp', 'file-chunks')
File.join('tmp', 'files', chunks_params[:_chunkIdentifier])
end
##
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment