Leaf Input functional

This commit is contained in:
2016-02-03 13:39:50 -05:00
parent 54b9eacd09
commit 10f7a23d31
11 changed files with 299 additions and 45 deletions
+3 -2
View File
@@ -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: