paste #87

raw

typo3-draguploder.js

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
                        var s = $.extend(true, {}, $.ajaxSettings, {
                                url: TYPO3.settings.DragUploader.ajaxUrl,
                                contentType: false,
                                processData: false,
                                data: formData,
                                cache: false,
                                type: 'POST',
                                success: me.uploadComplete,
                                error: me.uploadError
                        });
 
                        s.xhr = function() {
                                var xhr = $.ajaxSettings.xhr();
                                xhr.upload.addEventListener('progress', me.updateProgress);
                                return xhr;
                        };
 
                        // start upload
                        me.upload = $.ajax(s);
Christian Weiske Christian Weiske
owner

History