Leaf Input functional
This commit is contained in:
@@ -10,12 +10,13 @@
|
||||
$("#fileupload").fileupload({
|
||||
url: url,
|
||||
autoUpload: true,
|
||||
maxFileSize: 5000000,
|
||||
maxChunkSize: 10000000, // Optional: file chunking with 10MB chunks
|
||||
acceptFileTypes: /(bat)|(.*)$/i // Allowed file types
|
||||
acceptFileTypes: /(csv)$/i // Allowed file types
|
||||
})
|
||||
.bind("fileuploadsubmit", function (e, data) {
|
||||
// Optional: We add a random uuid form parameter. On chunk uploads the uuid is used to store the chunks.
|
||||
data.formData = { uuid: Math.random().toString(36).substr(2, 8) };
|
||||
//data.formData = { uuid: Math.random().toString(36).substr(2, 8) };
|
||||
});
|
||||
|
||||
// Load existing files:
|
||||
|
||||
Reference in New Issue
Block a user