Я использую dropzonejs / act-dropzone , и я хочу взять папку и перетащить ее внутрь. Она должна извлечь файлы, но в FF file.typeпусто, и поэтому все файлы отклоняются.
У меня есть базовая настройка
const config = this.componentConfig;const djsConfig = this.djsConfig;const eventHandlers = {init: dz => this.dropzone = dz, добавленный файл: this.handleFileAdded.bind (this), отправка: this.sending.bind (this), обработка: this.processing.bind (this), maxfilesexceeded:this.maxfilesexceeded.bind (this), maxfilesreached: this.maxfilesreached.bind (this), success: this.success.bind (this)}
this.djsConfig = {
addRemoveLinks: true,
acceptedFiles: "image/jpeg,image/png,image/gif"
autoProcessQueue: true,
maxFiles: 500
};
this.componentConfig = {
iconFiletypes: ['.jpg', '.png', '.gif'],
showFiletypeIcon: true,
postUrl: ''
};
this.dropzone = null;
<DropzoneComponent config={config} eventHandlers={eventHandlers} djsConfig={djsConfig}>