Skip to content

Commit 1d8921c

Browse files
Fix ajax request headers, must accept json now
1 parent 9d38a9b commit 1d8921c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.MD

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Release Notes for Chunked File Uploads
22

3+
## 1.0.1 - 2020-01-27
4+
- Fix ajax request headers, must accept json now.
5+
36
## 1.0.0 - 2019-05-25
47
- Initial release.

src/assets/resources/fileupload.patch.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ Craft.Uploader = (function(uploader) {
9898
this.uploader.fileupload('option', 'maxChunkSize', settings.chunkSize * toBytes);
9999
}
100100
},
101+
}, {
102+
defaults: Craft.Uploader.defaults
101103
});
102-
103104
})(Craft.Uploader);

0 commit comments

Comments
 (0)