Increased max file size to Document upload

This commit is contained in:
2025-06-04 16:33:31 +02:00
parent 581e565c6c
commit 8592f61a43
2 changed files with 6 additions and 5 deletions

View File

@@ -297,10 +297,10 @@ const showFileContent = (base64String, type) => {
const jsonObject = JSON.parse(textContent); // Parse JSON
fileContent.value = JSON.stringify(jsonObject, null, 2); // Formatta JSON
} else {
fileContent.value = 'Tipo di file non supportato.';
fileContent.value = 'File type not supported.';
}
} catch (error) {
fileContent.value = 'Errore durante la decodifica o il parsing del file.';
fileContent.value = 'Error while parsing the file.';
console.error(error);
}
};

View File

@@ -36,7 +36,7 @@
auto
:showUploadButton="false"
:showCancelButton="false"
:maxFileSize="20971520"
:maxFileSize="52428800"
:invalidFileSizeMessage="'Invalid file size, file size should be smaller than 20 MB'"
v-model:files="uploadedFiles"
@before-send="onBeforeSend"
@@ -100,7 +100,7 @@
auto
:showUploadButton="false"
:showCancelButton="false"
:maxFileSize="20971520"
:maxFileSize="52428800"
v-model:files="uploadedFiles"
@before-send="onBeforeSend"
>
@@ -332,6 +332,7 @@ const uploadedFiles = ref([]);
const numberPrFiles = ref(0);
const acceptedFormats = ref('.docx');
// :url="`http://localhost:8081/uploadListFiles/${folderName}`"
const errored_execution = ref(false);
// Stato per l'ID univoco della cartella
const uniqueFolderId = ref(generateUniqueId());
@@ -525,7 +526,7 @@ const openDebug = () => {
};
const pollBackendAPI = () => {
const errored_execution = ref(false);
errored_execution.value = false;
axios.get('/scenarios/getExecutionProgress/' + exec_id.value).then((response) => {
if (response.data.status == 'OK' || response.data.status == 'ERROR') {
console.log('Condition met, stopping polling.');