diff --git a/amigor/composer.lock b/amigor/composer.lock index 14eead6..69d4991 100644 --- a/amigor/composer.lock +++ b/amigor/composer.lock @@ -137,11 +137,11 @@ }, { "name": "cybex/laravel-transmorpher-client", - "version": "dev-fix/improve-overwrite-fix", + "version": "dev-fix/unintended-requests-on-mimetype-validation-error", "dist": { "type": "path", "url": "vendor/cybex/laravel-transmorpher-client", - "reference": "c954f5533b75ad0e08ac2f6db7e3f64065121020" + "reference": "95f2af449ea6d05ecd24d571d1c1d5d92ec4aa2f" }, "require": { "enyo/dropzone": "^5.9", diff --git a/amigor/public/vendor/transmorpher/mix-manifest.json b/amigor/public/vendor/transmorpher/mix-manifest.json index 0c98ec0..1f87466 100644 --- a/amigor/public/vendor/transmorpher/mix-manifest.json +++ b/amigor/public/vendor/transmorpher/mix-manifest.json @@ -1,5 +1,5 @@ { - "/transmorpher.js": "/transmorpher.js?id=87f85bfe73123b6a5abd7f638bd951ed", + "/transmorpher.js": "/transmorpher.js?id=1583a86bf2270919b4e8e6750dfbdf5c", "/transmorpher.css": "/transmorpher.css?id=56dbb0cba726c3e63f1c109f6b9a6f1b", "/icons/delete.svg": "/icons/delete.svg?id=f88179ccc3649c47f2264315be6c0421", "/icons/enlargen.svg": "/icons/enlargen.svg?id=9f560ce3f022646dbb826a066715a343", diff --git a/amigor/public/vendor/transmorpher/transmorpher.js b/amigor/public/vendor/transmorpher/transmorpher.js index 6cb645c..0dbc194 100644 --- a/amigor/public/vendor/transmorpher/transmorpher.js +++ b/amigor/public/vendor/transmorpher/transmorpher.js @@ -47,6 +47,7 @@ if (!window.transmorpherScriptLoaded) { dictDefaultMessage: medium.translations['drop_files_to_upload'], dictFileTooBig: medium.translations['max_file_size_exceeded'], dictInvalidFileType: medium.translations['invalid_file_type'], + createImageThumbnails: false, init: function init() { // Processing-Event is emitted when the upload starts. this.on('processing', function () { @@ -123,11 +124,7 @@ if (!window.transmorpherScriptLoaded) { if (errorElement = this.element.querySelector('.dz-error')) { errorElement.remove(); } - - // Dropzone only emits the "thumbnail" event for images. - if (!file.type.match(/image.*/)) { - this.emit("thumbnail", file); - } + this.emit("thumbnail", file); }, // Update database when upload was canceled manually. canceled: function canceled(file) { diff --git a/dist/mix-manifest.json b/dist/mix-manifest.json index 0c98ec0..1f87466 100644 --- a/dist/mix-manifest.json +++ b/dist/mix-manifest.json @@ -1,5 +1,5 @@ { - "/transmorpher.js": "/transmorpher.js?id=87f85bfe73123b6a5abd7f638bd951ed", + "/transmorpher.js": "/transmorpher.js?id=1583a86bf2270919b4e8e6750dfbdf5c", "/transmorpher.css": "/transmorpher.css?id=56dbb0cba726c3e63f1c109f6b9a6f1b", "/icons/delete.svg": "/icons/delete.svg?id=f88179ccc3649c47f2264315be6c0421", "/icons/enlargen.svg": "/icons/enlargen.svg?id=9f560ce3f022646dbb826a066715a343", diff --git a/dist/transmorpher.js b/dist/transmorpher.js index 6cb645c..0dbc194 100644 --- a/dist/transmorpher.js +++ b/dist/transmorpher.js @@ -47,6 +47,7 @@ if (!window.transmorpherScriptLoaded) { dictDefaultMessage: medium.translations['drop_files_to_upload'], dictFileTooBig: medium.translations['max_file_size_exceeded'], dictInvalidFileType: medium.translations['invalid_file_type'], + createImageThumbnails: false, init: function init() { // Processing-Event is emitted when the upload starts. this.on('processing', function () { @@ -123,11 +124,7 @@ if (!window.transmorpherScriptLoaded) { if (errorElement = this.element.querySelector('.dz-error')) { errorElement.remove(); } - - // Dropzone only emits the "thumbnail" event for images. - if (!file.type.match(/image.*/)) { - this.emit("thumbnail", file); - } + this.emit("thumbnail", file); }, // Update database when upload was canceled manually. canceled: function canceled(file) { diff --git a/src/resources/js/transmorpher.js b/src/resources/js/transmorpher.js index 93f4920..7747f31 100644 --- a/src/resources/js/transmorpher.js +++ b/src/resources/js/transmorpher.js @@ -43,6 +43,7 @@ if (!window.transmorpherScriptLoaded) { dictDefaultMessage: medium.translations['drop_files_to_upload'], dictFileTooBig: medium.translations['max_file_size_exceeded'], dictInvalidFileType: medium.translations['invalid_file_type'], + createImageThumbnails: false, init: function () { // Processing-Event is emitted when the upload starts. this.on('processing', function () { @@ -108,10 +109,7 @@ if (!window.transmorpherScriptLoaded) { errorElement.remove(); } - // Dropzone only emits the "thumbnail" event for images. - if (!file.type.match(/image.*/)) { - this.emit("thumbnail", file); - } + this.emit("thumbnail", file); }, // Update database when upload was canceled manually. canceled: function (file) {