Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

AjaxFileUpload preview missing

$
0
0

Hi,

I am using the following pieces of code to upload images

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager><asp:ajaxfileupload ID="Ajaxfileupload1" runat="server" OnUploadComplete="FileUploadComplete"></asp:ajaxfileupload>
protected void FileUploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e)
{
  string filePath = @"C:\Test\" + e.FileName;
  Ajaxfileupload1.SaveAs(filePath);
}



http://imgur.com/KJWA7U4

If you look at the image, there is no preview of the image unlike what the demo shows here http://www.asp.net/AjaxLibrary/AjaxControlToolkitSampleSite/AjaxFileUpload/AjaxFileUpload.aspx

Two things here

a) Can you please let me know how can I get the preview of the image?

b) If I want to upload pdf, is there a way to put a URL next to the uploaded pdf pointing to its location. Since this is all handled by ajaxfileupload internally, I am not sure how to add a link to access the pdf.

Thanks


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>