Click here to Skip to main content
15,908,437 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to upload image through <input type="file".../>
and save only image name in database and save image in Directory in my file dirctory of my project.


please give me solution.



Thank's in advance.
Posted

1 solution

Are you using "classic" ASP or ASP.NET? If you are using ASP.NET, then I would look to use the asp:FileUpload control which renders out to an <input type="file" in your HTML. Behind the scenes, this control provides a FileName property which can be used to identify the filename.

If you are using "classic" ASP, there's a good example here[^] of how to do this.
 
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