add file metadata to database

This commit is contained in:
Tina_Azure
2023-08-07 19:34:09 +02:00
parent 3c9488df66
commit 552b1d62fe
5 changed files with 63 additions and 9 deletions

View File

@@ -7,7 +7,7 @@
function upload() {
var file = _("FILE_SUBMISSION").files[0];
const fileSize = file.size / 1024 / 1024;
const maxSize = {{MAXIMUM_STORAGE_IN_MB}} - {{AVAILIBLE_STORAGE_IN_MB}};
const maxSize = {{MAXIMUM_STORAGE_IN_MB}} - {{USED_STORAGE_IN_MB}};
const maxFileNameLength = {{MAXIMUM_FILE_NAME_SIZE}};
console.log(maxSize);
console.log(maxFileNameLength);