Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mounted() {
bus.$on('start-upload', this.StartUpload);
if (!this.isAdvancedUpload()) {
console.log('Your browser doesn\'t support dropzone upload');
return;
}
var tmpContainer = document.getElementById(this.dataName + 'container_');
var tmpBrowse = document.getElementById(this.dataName + 'button_');
this.uploader = new plupload.Uploader({
runtimes: 'html5,html4',
browse_button: tmpBrowse,
container: tmpContainer,
url: this.dataUpload,
chunk_size: this.dataChunkSize,
http_method: 'POST',
//max_retries: 3,
//multipart: true,
multipart_params: this.dataOptions,
//send_chunk_number: true,
//send_file_name: true,
headers: {
'X-CSRF-TOKEN': Laravel.csrfToken,
'Authorization': Laravel.apiToken
},
//required_features: 'chunks',
mounted() {
var tmpContainer = document.getElementById(this.dataName + '_container_');
var tmpBrowse = document.getElementById(this.dataName + '_button_');
this.uploader = new plupload.Uploader({
runtimes: 'html5,html4',
browse_button: tmpBrowse,
container: tmpContainer,
url: this.dataUpload,
chunk_size: this.dataChunkSize,
http_method: 'POST',
multipart_params: this.dataOptions,
headers: {
'X-CSRF-TOKEN': Laravel.csrfToken,
'Authorization': Laravel.apiToken
},
file_data_name: this.dataName,
filters: {
max_file_size: this.dataMaxSize,
mime_types: [
{