Skip to content
Snippets Groups Projects
Commit 1b7d2cb8 authored by bfs15's avatar bfs15
Browse files

fixed file uploads directory to be unique

parent c9cdd3ec
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,9 @@ class V1::LearningObjects::ChunksController < ApplicationController
if last_chunk?
combine_file!
post_file!
# TODO render new attachment ID
render status: 200
end
render status: 200
......@@ -108,7 +111,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