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); }
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