Thursday, 29 August 2013

uploadify is not working in content page

uploadify is not working in content page

How to work with uploadify with mastperpage and content page.its not
working,only choose image text is rendring.how to enable it so that popup
will come and select muiltiple file this is my masterpage
<head runat="server">
<title></title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<asp:ContentPlaceHolder ID="HeadContent" runat="server">
</asp:ContentPlaceHolder>
</head>
below is my content page
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="Scripts/jquery.uploadify.js"></script>
<script type="text/javascript">
// <![CDATA[
var id = "55";
var theString = "asdf";
$(document).ready(function () {
$("#<%=fupImagem.ClientID %>").uploadify({
'uploader': 'uploadify/uploadify.swf',
'script': 'Upload.ashx',
'scriptData': { 'id': id, 'foo': theString },
'cancelImg': 'uploadify/cancel.png',
'auto': true,
'multi': true,
'fileDesc': 'Image Files',
'fileExt': '*.jpg;*.png;*.gif;*.bmp;*.jpeg',
'queueSizeLimit': 90,
'sizeLimit': 4000000,
'buttonText': 'Choose Images',
'folder': '/uploads',
'onAllComplete': function (event, queueID, fileObj, response,
data) {
}
});
});
// ]]>
</script>
</asp:Content>
my file upload control inside below
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<input id="fupImagem" name="fileInput" type="file" runat="server"/>

No comments:

Post a Comment