fix not uploading multiple files
This commit is contained in:
@@ -724,7 +724,7 @@ const imageBrowser = (callback, value, meta, gallery = false) => {
|
|||||||
|
|
||||||
for (let i = 0; i < files.length; i++) {
|
for (let i = 0; i < files.length; i++) {
|
||||||
let formData = new FormData();
|
let formData = new FormData();
|
||||||
formData.append("file", files[0]);
|
formData.append("file", files[i]);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let progressText = [
|
let progressText = [
|
||||||
@@ -825,7 +825,6 @@ const imageBrowser = (callback, value, meta, gallery = false) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
input.value = "";
|
|
||||||
alert(
|
alert(
|
||||||
error.data.message ||
|
error.data.message ||
|
||||||
"An unexpected error occurred uploading the file to the server."
|
"An unexpected error occurred uploading the file to the server."
|
||||||
|
|||||||
Reference in New Issue
Block a user