What is the code for file upload?

M

Mark Sandfox

I have tried everyway i know both Input type=file and asp.net 2.0
asp:uploadfile and continue to run into road blocks at one point or another.

The objective is as follows:

Allow user to upload multiple files of a specific extension (i.e. .jpg). In
addition to uploading to a specific directory, I need to extract the
filename and extension to store in a database (don't worry about the
database side).

I have tried UploadFile but get a parsing error on the <asp:UploadFile line.

I had input working except for restricting file extension type.

Any and all help will be greatly appreciated.

Thank you in advance for all you help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,229
Latest member
GloryAngul

Latest Threads

Top