Last active
December 11, 2015 01:29
-
-
Save jayarjo/4523490 to your computer and use it in GitHub Desktop.
Plupload - Queue widget example
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 xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<title>Plupload - Queue widget example</title> | |
<link rel="stylesheet" href="../../js/jquery.plupload.queue/css/jquery.plupload.queue.css" type="text/css" media="screen" /> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
<script type="text/javascript" src="../../js/plupload.full.min.js"></script> | |
<script type="text/javascript" src="../../js/jquery.plupload.queue/jquery.plupload.queue.js"></script> | |
</head> | |
<body> | |
<form method="post" action="dump.php"> | |
<div id="uploader"></div> | |
<input type="submit" value="Send" /> | |
</form> | |
<script type="text/javascript"> | |
$(function() { | |
// Setup html5 version | |
$("#uploader").pluploadQueue({ | |
// General settings | |
runtimes : 'html5,flash,silverlight,html4', | |
url : '../upload.php', | |
max_file_size : '10mb', | |
chunk_size : '1mb', | |
unique_names : true, | |
dragdrop: true, | |
filters : [ | |
{title : "Image files", extensions : "jpg,gif,png"}, | |
{title : "Zip files", extensions : "zip"} | |
], | |
// Resize images on clientside if we can | |
resize : {width : 320, height : 240, quality : 90}, | |
// Shim URLs | |
flash_swf_url : '../../js/Moxie.swf', | |
silverlight_xap_url : '../../js/Moxie.xap' | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment