Avoid resending auto_processing_node param for each image, disable limit on DATA_UPLOAD_MAX_NUMBER_FIELDS

pull/230/head
Piero Toffanin 2017-07-10 15:13:23 -04:00
rodzic 874d2cbcb3
commit 913c8fe777
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -166,7 +166,9 @@ class ProjectListItem extends React.Component {
this.resetUploadState();
})
.on("sending", (file, xhr, formData) => {
formData.append('auto_processing_node', "false");
if (!formData.has("auto_processing_node")){
formData.append('auto_processing_node', "false");
}
});
}
}

Wyświetl plik

@ -170,7 +170,7 @@ STATICFILES_DIRS = [
# File Uploads
FILE_UPLOAD_MAX_MEMORY_SIZE = 4718592 # 4.5 MB
DATA_UPLOAD_MAX_NUMBER_FIELDS = None
# Webpack
WEBPACK_LOADER = {