Created
July 20, 2013 15:10
-
-
Save MarcoGomesr/6045401 to your computer and use it in GitHub Desktop.
Dropzone show files store in server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="es-ES"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width"> | |
<link href="css/dropzone.css" type="text/css" rel="stylesheet" /> | |
<title></title> | |
</head> | |
<body> | |
<form id="my-awesome-dropzone" action="upload.php" class="dropzone"></form> | |
<script src="jquery.js"></script> | |
<script src="dropzone.js"></script> | |
<script> | |
$(function() { | |
var mockFile = { name: "banner2.jpg", size: 12345 }; | |
var myDropzone = new Dropzone("#my-awesome-dropzone"); | |
myDropzone.options.addedfile.call(myDropzone, mockFile); | |
myDropzone.options. thumbnail.call(myDropzone, mockFile, "http://localhost/test/drop/uploads/banner2.jpg"); | |
}) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment