Skip to content

Instantly share code, notes, and snippets.

@timmyc
Created July 21, 2009 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timmyc/151401 to your computer and use it in GitHub Desktop.
Save timmyc/151401 to your computer and use it in GitHub Desktop.
<input type="file" name="fileInput" id="fileInput" />
<script type="text/javascript">
$(document).ready(function() {
$('#fileInput').fileUpload ({
'uploader' : '/uploader.swf',
'script' : '/admin/uploadify/create/',
'cancelImg' : '/images/cancel.png',
'buttonText': 'Add Photos',
'auto' : true,
'scriptData': {
session_key: '<%= get_session_key %>'
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment