Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form id="index" action="upload.php" enctype="multipart/form-data" method="post">
- <input type="text" name="ads[title]" class="required" required />
- <textarea name="ads[description]" class="required"></textarea>
- //for uploading images using dropzone plugin
- <div id="upload-box">
- <p action="upload.php" class="dropzone"></p>
- <p action="upload.php" class="dropzone"></p>
- </div>
- var myDropzone = new Dropzone("#upload-box");
- Dropzone.options.myDropzone = {
- url: '/uploads',
- init: function () {
- this.on("complete", function (file) {
- if (this.getUploadingFiles().length === 0 && this.getQueuedFiles().length === 0) {
- alert("File-Uploaded");
- }
- });
- }
- };
- Uncaught Error: No URL provided.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement