Browse Source

Merge pull request #219 from georgehristov/dropzone_upload_url

Dropzone fixes
Thank you @georgehristov 👍
experimental
Janusz Tylek 4 years ago
committed by GitHub
parent
commit
c3e39cf821
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/Utils/FileUpload/Dropzone.php

+ 2
- 2
modules/Utils/FileUpload/Dropzone.php View File

@@ -58,14 +58,14 @@ class Utils_FileUpload_Dropzone extends Module
}
}
$options = [
'url' => get_epesi_url() . '/' . $dir . 'dropzoneupload.php?' . $query,
'url' => $dir . 'dropzoneupload.php?' . $query,
'uploadMultiple' => true,
'addRemoveLinks' => true,
'maxFiles' => $this->maxFiles,
'acceptedFiles' => $this->acceptedFiles,
'dictDefaultMessage' => __('Drop files here or click to upload')
];
eval_js('jq(".dz-hidden-input").remove(); if (!document.querySelector("#' . $identifier . '").dropzone) {
eval_js('jq(".dz-hidden-input").remove(); if (document.querySelector("#' . $identifier . '") && !document.querySelector("#' . $identifier . '").dropzone) {
var dz = new Dropzone("#' . $identifier . '", '.json_encode($options).');
dz.on("removedfile", function(file) {
jq.ajax({


Loading…
Cancel
Save