Dropzone.js - Upload Folder Structures And Single Files
I'm currently using the structured folder uploader from 'nuhil' to make the upload of folders/complete folder structures possible with dropzone.js. Uploading folders is working gre
Solution 1:
Because when you try to upload single file the "file.fullPath" is undefined, You can try file.name then by checking undefined.
this.on("sending", function(file) {
var name = file.fullPath;
if (typeof (file.fullPath) === "undefined") {
name = file.name;
}
$("#tmp-path").html('<input type="hidden" name="path" value="'+name+'" />')
});
Post a Comment for "Dropzone.js - Upload Folder Structures And Single Files"