It looks like you're new here. If you want to get involved, click one of these buttons!
<head runat=\"server\">
<link rel=\"stylesheet\" type=\"text/css\" href=\"CSS/Style.css\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"CSS/Uploadify.css\" />
<script type=\"text/javascript\" src=\"Javascript/jquery-1.3.2.js\"></script>
<script type=\"text/javascript\" src=\"Javascript/jquery.uploadify.js\"></script>
<script type=\"text/javascript\">
$(document).ready(function() {
$('#fileInput').fileUpload({
'uploader': 'uploader.swf',
'script': 'upload.ashx',
'auto': true,
'cancelImg': '\Images\cancel.png',
'displayData': 'percentage',
'buttonText': 'Choose File',
'wmode': 'transparent'
});
});
</script>
<title>Document Management Add Document</title>
</head>
<div class=\"greyBlock\">
<div class=\"tr\">
<asp:Label ID=\"attachFile\" Text=\"Attach a file\" CssClass=\"heading2\" runat=\"server\"></asp:Label>
<asp:Label ID=\"fileSize\" Text=\"(Each file should be under 10MB)\" runat=\"server\"></asp:Label>
</div>
<div class=\"tr\">
<input type=\"file\" id=\"fileInput\" name=\"fileInput\" runat=\"server\"/>
</div>
</div>
<script type=\"text/javascript\">
$(document).ready(function() {
var redirectURL = 'http://www.google.co.uk';
$('#fileInput').fileUpload({
'uploader': 'uploader.swf',
'script': 'upload.ashx',
'auto': true,
'cancelImg': '\Images\cancel.png',
'displayData': 'percentage',
'buttonText': 'Choose File',
'wmode': 'transparent',
'onComplete': function(e, q, f, r, d) {
window.location = redirectURL;
}
});
});
</script>
bdp said:[quote="SarahD"]Thanks I thought that might be the case however I have no idea what the syntax would be for the oncomplete?
Apologies for such a newbie question!
this.getServletContext().getRequestDispatcher(\"/index.jsp\").forward(request, response);
if (ServletFileUpload.isMultipartContent(request)) {
procesaFicheros(request);
this.getServletContext().getRequestDispatcher(\"/index.jsp\").forward(request, response);
}SarahD said:Does anyone have an asp version?
Something I could add at the bottom of my upload.ashx perhaps?