We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09444c1 commit 06bc72bCopy full SHA for 06bc72b
src/assets/resources/fileupload.patch.js
@@ -22,10 +22,11 @@ Craft.Uploader = (function(uploader) {
22
init: function($element, settings) {
23
uploader.prototype.init.call(this, $element, settings);
24
25
+ var resolvedSettings = this.settings || settings;
26
if (
- 'url' in settings &&
27
+ 'url' in resolvedSettings &&
28
saveActions.some(function(saveAction) {
- return decodeURIComponent(settings.url).indexOf(saveAction) !== -1;
29
+ return decodeURIComponent(resolvedSettings.url).indexOf(saveAction) !== -1;
30
})
31
) {
32
this.isSaveAction = true;
0 commit comments