filepicker.io drag and drop with images over 2 meg -
Whenever I use filepicker.io, I get the following error with the images that use the drag and drop method Doing more than 2 meg. / P>
Unfair reference references: DIALOG_URL is not defined
Thus html is.
& lt; Div class = 'draganddropimage uploadhelp' id = "exampleDropPane" & gt; & Lt; / Div & gt;
and javascript is
filepicker.setKey ('xxxxx'); Var option = {"multiple": true}; Filepicker.makeDropPane ($ ('# exampleDropPane') [0], {multiple: true, mimap: 'image / *', maximum: "10485760", dragent: function () {// $ ("# pb"). AddClass ('show'); $ ("drop to upload");}, drag: works () {// $ ("# pb"). AddClass ('show') ; $ ("# Files" dropdown). Html ("leave file here");}, progress: work (percentage) {$ ("# exampleDropPane"). Text ("uploading (" + + "+"% ") ; // Alert (percent); // $ ("# pb"). CSS ('width', (percent) + '%');}, dragger: function (data) {// warning (data); console .log ('Grrr errro');}, done: function ( Data) {//console.log("fn:"+data[0].data.filename); //$("#pb").css('width ', (0) +'% '); / / File upload (data); image upload (data);}, error: function (type, m essage) {console.log (message); $ ("# exampleDropPane") .html ("Sorry images and PDF files only ");}});
Comments
Post a Comment