We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0e6c3b commit 2baf638Copy full SHA for 2baf638
codepulse/src/main/resources/toserve/pages/ProjectInputForm/ProjectInputForm.js
@@ -82,9 +82,15 @@ $(document).ready(function(){
82
url: uploadUrl,
83
dropZone: fileDropzone,
84
add: function(e, data){
85
- // use this `data` as the current file data.
86
- // this will be used once the form is submitted.
87
- projectFile.set(data)
+ if (data.files[0].size > 524288000) {
+ alert('The file you specified exceeds the maximum file size (500 MB).');
+ projectFile.set(null);
88
+ return
89
+ }
90
+
91
+ // use this `data` as the current file data.
92
+ // this will be used once the form is submitted.
93
+ projectFile.set(data)
94
},
95
formData: function(){
96
var name = projectName.get()
0 commit comments