CC-6102: Can't upload M4A and FLAC anymore - rejected by dropzone

This commit is contained in:
Albert Santoni 2015-08-25 15:15:03 -04:00
parent 0752e78b2c
commit b99ec51863
2 changed files with 9 additions and 2 deletions

View file

@ -14,10 +14,11 @@ $(document).ready(function() {
Object.freeze(self.IMPORT_STATUS_CODES);
}
console.log(acceptedMimeTypes.join());
Dropzone.options.addMediaDropzone = {
url:'/rest/media',
//clickable: false,
acceptedFiles: acceptedMimeTypes.join(),
acceptedFiles: acceptedMimeTypes.join() + ",.flac",
init: function () {
this.on("sending", function (file, xhr, data) {
data.append("csrf_token", $("#csrf").val());