Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Uploading multiple files with ruby, uplodify and sinatra :
<title>Image Upload</title>
<link rel="stylesheet" type="text/css" href="uploadify.css" />
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="jquery.uploadify.min.js"></script>
<h1>Upload Images</h1>
<input type="file" name="file_upload" id="file_upload" />
$(function() {
'swf' : 'uploadify.swf',
'uploader' : '/upload',
'onUploadSuccess' : function(file, data, response) {
$("#images").append("<img src='/" + data + "' height='100px'/>");
<div id="images">
<strong>Uploaded images here:</strong><br />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.