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

added permission for ng-file-upload parameters

parent b1b09b04
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,17 @@ class V1::LearningObjects::ChunksController < ApplicationController
# Never trust parameters from the scary internet, only allow the white list through.
def chunks_params
params.permit(:id, :file, :_chunkNumber, :_totalChunks, :_chunkFilename, :_chunkIdentifier)
params.permit(
:id,
:file,
:_chunkNumber,
:_totalChunks,
:_chunkFilename,
:_chunkIdentifier,
:_chunkSize,
:_currentChunkSize,
:_totalSize
)
end
def post_file!
......
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