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.
sudheer kota - 18 Jan 2006 20:35 GMT
Your form tag should be something like this..
<form method="post" enctype="multipart/form-data"
action="upload.asp">
> 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.
[quoted text clipped - 13 lines]
>
> Thank you in advance for all you help.
Mark Sandfox - 18 Jan 2006 20:50 GMT
Yes that much i knew, but thank you. The problem arrises when using the
input type=file method is that i can not get the filter to only allow .jpg.
Any suggestions?
> Your form tag should be something like this..
> <form method="post" enctype="multipart/form-data"
[quoted text clipped - 20 lines]
>>
>> Thank you in advance for all you help.
Albert Pascual - 18 Jan 2006 20:43 GMT
<INPUT id="filename" type="file" size="59" name="filename" runat="server">
> 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.
[quoted text clipped - 13 lines]
>
> Thank you in advance for all you help.
S. Justin Gengo [MCP] - 18 Jan 2006 20:48 GMT
Mark,
This article covers everything you should need:
http://msdn.microsoft.com/asp.net/default.aspx?pull=/library/en-us/dnaspp/html/U
ploadASP2.asp

Signature
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
>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
[quoted text clipped - 15 lines]
>
> Thank you in advance for all you help.