Skip to content

Commit

Permalink
Add csrf token for data deposit file uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
mah0001 committed Jan 11, 2024
1 parent b751581 commit 9a771aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion application/views/datadeposit/datafiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,11 @@ function log(d)
chunk_size : '2mb',
unique_names : false,
multiple_queues:true,
multipart_params: { 'upload_folder': 'default', 'overwrite':0},
multipart_params: {
'upload_folder': 'default',
'overwrite':0,
'<?php echo $this->security->get_csrf_token_name(); ?>': '<?php echo $this->security->get_csrf_hash(); ?>'
},

// Resize images on clientside if we can
//resize : {width : 800, height : 800, quality : 100},
Expand Down

0 comments on commit 9a771aa

Please sign in to comment.