Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
In ASP .NET - How to create a user interface on my website with username and password so that user can upload files(.txt, .pdf, .doc, .xls etc) using that interface. After uploading there should be created a table that will have fields as FileName, and other details provided by the user having authorized password.
Posted
Updated 24-Jan-13 18:00pm
v2
Comments
Azziet 25-Jan-13 0:35am    
you want to create an application or application using Interface{}?
please clear it..
ruddy_CodeHunter 25-Jan-13 1:25am    
I have created my own website and now i want to make it interactive so that a user can simply upload/download files. For uploading i want authorization not for download

1 solution

Use an upload form control after you've authorized, don't require authorization on download links. That's the best answer I can give based on your question.
A simple form like this can do the work on the client side.
HTML
<form action="demo_form.asp" mode="hold" />Upload <input type="file" name="urfile"><br>
<input type="submit" value="Submit">
</form> 

Use the request file stream to read the file on the server, store into whatever locations you need and provide download links where you want.

Good luck.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900