-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_dropzone.php
More file actions
executable file
·40 lines (28 loc) · 1.08 KB
/
test_dropzone.php
File metadata and controls
executable file
·40 lines (28 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<script src="js/dropzone/4.3.0/dropzone.js"></script>
<link rel="stylesheet" type="text/css" href="css/dropzone/4.3.0/dropzone.css">
<form action="UploadImages"
class="dropzone"
id="DropZoneFiddle" enctype="multipart/form-data">
<span class="glyphicon glyphicon-download"></span>
<br/>
</form>
<br>
<form action="UploadImages"
class="dropzone"
id="DropZoneFiddle2" enctype="multipart/form-data">
<span class="glyphicon glyphicon-download"></span>
<br/>
</form>
<script>
// $(document).ready(function () {
// Dropzone.autoDiscover = false;
// $("#DropZoneFiddle").dropzone({url: "toto.php"});
// $("#DropZoneFiddle2").dropzone({url: "toto.php"});
// });
$(document).ready(function () {
Dropzone.autoDiscover = false;
$(".dropzone").each(function () {
new Dropzone($(this).get(0), {url: "toto.php"});
});
});
</script>