Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. <form id="index" action="upload.php" enctype="multipart/form-data" method="post">
  2. <input type="text" name="ads[title]" class="required" required />
  3. <textarea name="ads[description]" class="required"></textarea>
  4. //for uploading images using dropzone plugin
  5. <div id="upload-box">
  6. <p action="upload.php" class="dropzone"></p>
  7. <p action="upload.php" class="dropzone"></p>
  8. </div>
  9.  
  10. var myDropzone = new Dropzone("#upload-box");
  11. Dropzone.options.myDropzone = {
  12. url: '/uploads',
  13. init: function () {
  14. this.on("complete", function (file) {
  15. if (this.getUploadingFiles().length === 0 && this.getQueuedFiles().length === 0) {
  16. alert("File-Uploaded");
  17. }
  18. });
  19. }
  20. };
  21.  
  22. Uncaught Error: No URL provided.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement