fix projects

This commit is contained in:
2024-11-11 03:16:51 +01:00
parent 9fa897be57
commit 4870717c07
3 changed files with 53 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
document
.getElementById('project-upload')
.addEventListener('submit', function (event) {
const fileInput = document.getElementById('files');
if (fileInput.files.length === 0) {
fileInput.removeAttribute('name');
}
});