Skip to content

Instantly share code, notes, and snippets.



Last active Jun 15, 2016
What would you like to do?
Layout = null;
<!DOCTYPE html>
<meta name="viewport" content="width=device-width" />
<title>::Uploadify Example::</title>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.uploadify-3.1.min.js")"></script>
<link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/uploadify.css")" />
<script type="text/javascript">
$(function () {
'swf': "@Url.Content("~/Content/uploadify.swf")",
//this is where the file posts when it uploads.
'uploader': "@Url.Action("Upload", "Home")",
'onUploadSuccess' : function(file, data, response) {
//data is whatever you return from the server
//we're sending the URL from the server so we append this as an image to the #uploaded div
$("#uploaded").append("<img src='" + data + "' alt='Uploaded Image' />");
Click Select files to upload files.
<input type="file" name="file_upload" id="file_upload" />
<div id="uploaded">
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.