javascript - Can't get Dropzone.js to work? files always show with red x -


i trying dropzone.js work no success. have added dropzone.css , dropzone.js

the plugin can found @ http://www.dropzonejs.com/

here div:

<div id="divdropzone" class="dropzone square" style=" width:430px; heigh:300px; background-color:white; overflow-x:hidden; overflow-y:scroll;"></div> 

here js

var mydropzone = new dropzone("div#divdropzone", { url: "/file/post"}); 

what happens dropzone displayed when drag or browse item shown red x , error on page:

> post http://localhost:2627/file/post net::err_connection_reset 

you first need diagnose what's wrong. follow this answer here learn how view full error when file uploaded.

remember, dropzone uses ajax, see errors you'll need use tool firebug or crome dev tools. in chrome tools can use network panel view error. dropzone item in red text. you'll know error is, , should able fix quickly.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -