Note that there are some explanatory texts on larger screens.

plurals
  1. POUpload Files In RAZOR With jQuery Uploadify
    primarykey
    data
    text
    <p>I want to upload image through Uploadify.</p> <p>when uploading start the given error show.</p> <p><strong>error :</strong> <em>IO Error</em></p> <p>can you people help me about this error.</p> <p>My code is given below:</p> <p><strong>these directive i have include in my project.</strong></p> <pre><code>&lt;link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" /&gt; &lt;script src="@Url.Content("~/Scripts/js/jquery-1.7.1.min.js")" type="text/javascript"&gt;&lt;/script&gt; &lt;link href="@Url.Content("~/Content/custom-theme/jquery-ui-1.8.18.custom.css")" rel="stylesheet" type="text/css" /&gt; &lt;script type="text/javascript" src="@Url.Content("~/Scripts/js/jquery-ui-1.8.18.custom.min.js")"&gt;&lt;/script&gt; &lt;link href="@Url.Content("~/Content/uploadify.css")" rel="stylesheet" /&gt; &lt;script src="@Url.Content("~/Scripts/jquery.uploadify.js")" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p><strong>JS:</strong></p> <pre><code>$(window).load( function() { $("#fileuploader").fileUpload({ 'uploader': '/Scripts/uploader.swf', 'cancelImg': '/images/cancel.png', 'buttonText': 'Select Image', 'script': 'ShowClientQuotation/Upload', 'folder': '/images', 'fileDesc': 'Image Files', 'fileExt': '*.jpg;*.jpeg;*.gif;*.png', 'multi': false, 'auto': true }); } ); </code></pre> <p><strong>html:</strong></p> <pre><code>&lt;div id="fileuploader"&gt;&lt;/div&gt; </code></pre> <p><strong>My Controller Name</strong>: <em>ShowClientQuotation</em></p> <pre><code>public string Upload(HttpPostedFileBase fileData) { var fileName = this.Server.MapPath("~/images/UserProfilePic/" + System.IO.Path.GetFileName(fileData.FileName)); fileData.SaveAs(fileName); return "ok"; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload