This is a migrated thread and some comments may be shown as answers.

Upload 1 File. Create a Link for download 1 file

1 Answer 105 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
iomega 55
Top achievements
Rank 1
iomega 55 asked on 12 Dec 2009, 06:46 AM
Hi:

1) I need to upload 1 file.
2) Once the file is uploaded, I need to create a link for download this file  (jpg, doc, pdf)
3) How must I create this link? I dont want to use the FileExplorer, I just need to have a link to 1 file.
4) Does it exist an special download.ashx for downloading the files throw the link?


Can you share a sample?

1 Answer, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 14 Dec 2009, 09:45 AM
Hi iomega 55,

RadUpload takes care of the file upload process only. As the upload storage can vary (e.g. a location in a common storage, out of the web application, a database, etc.), it is up to the developer to create a file repository and construct the download links. The FileExplorer control provides one of the approaches for that.

Please, find attached the simplest example (created with the standard ASP.NET FileUpload control), which stores a selected file to a folder in the website and publishes a download URL afterwards.

Best regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Upload (Obsolete)
Asked by
iomega 55
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Share this question
or