FF тип файла пуст, если вы перетаскиваете файлы в папку - DropzoneJs - PullRequest
0 голосов
/ 09 октября 2018

Я использую 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}>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...