Skip to content

Instantly share code, notes, and snippets.

@jptoto
Created May 15, 2011 20:14
Show Gist options
  • Save jptoto/973493 to your computer and use it in GitHub Desktop.
Save jptoto/973493 to your computer and use it in GitHub Desktop.
uploadify
$(document).ready(function() {
$("#fileUpload2").fileUpload({
'uploader': 'uploadify/uploader.swf',
'cancelImg': 'uploadify/cancel.png',
'script': 'uploadify/upload.php',
'folder': '',
'multi': true,
'fileDesc': 'Afbeeldingen',
'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
'checkScript': 'uploadify/check.php',
'scriptData': {'folder2': '<?php echo base64_encode($dest) ?>'},
'displayData': 'speed',
'simUploadLimit': 10,
onAllComplete: function () {
window.location="upload_resize.php?map=<?php echo $map;?>";
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment