fix projects
This commit is contained in:
9
assets/static/js/project-upload.js
Normal file
9
assets/static/js/project-upload.js
Normal 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');
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user