Last post Apr 03, 2017 02:32 PM by ThisIsYusuf
Mar 17, 2017 08:00 AM|ThisIsYusuf|LINK
In this part of the code, the user upload the image, then displayed in the image control
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If FileUpload1.HasFile Then
Dim imageName As String = DateTime.Now.ToString("yyyyMMddhhmmss")
Dim extension As String = System.IO.Path.GetExtension(FileUpload1.FileName)
FileUpload1.SaveAs(Server.MapPath("~/images/" & imageName & extension))
Image1.ImageUrl = "/Images/" & imageName & extension
How can I make access to image from the link more secure
Mar 17, 2017 08:47 AM|kaushalparik27|LINK
Protect Files and Folders Using HttpHandlers in ASP.NET. Here is another long thread on
Protect Folder Asp.net | The ASP.NET Forums. Idea is, to create HttpHanlder to protect folders or specific file types in your application folder.
Mar 31, 2017 09:45 PM|ThisIsYusuf|LINK
Thank you for your reply, but in this case, any user can access the image from
Apr 01, 2017 09:55 AM|kaushalparik27|LINK
You may use and implement some kind of encryption logic in URL to validate on each request, to authenticate.
Apr 03, 2017 02:32 PM|ThisIsYusuf|LINK
Thank you for reply.
Any other resources or any keywords that might help me to complete the project?