Home All Groups Group Topic Archive Search About

Set file extensions for FileUpload

Author
2 May 2006 11:38 PM
David Thielen
Hi;

Is there a way to set the extensions in the "Files of Type" for the FileOpen
dialog for the FileUpload control?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Author
3 May 2006 7:07 AM
Steven Cheng[MSFT]
Hi Dave,

Thank you for posting.

As for the web page's file upload html element, it doesn't support such
file extension filter as the windows form file select dialog. So far for
file extension checking, we may need to use client-script to manually
validate the file path through the input file element's onchange client
side event.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Author
3 May 2006 1:14 PM
David Thielen
ok - thanks. I didn't want it for validation, just so only the relevant files
were displayed in the FileOpen dialog.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com



Show quoteHide quote
"Steven Cheng[MSFT]" wrote:

> Hi Dave,
>
> Thank you for posting.
>
> As for the web page's file upload html element, it doesn't support such
> file extension filter as the windows form file select dialog. So far for
> file extension checking, we may need to use client-script to manually
> validate the file path through the input file element's onchange client
> side event.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Community Support
>
>
> ==================================================
>
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
>
> ==================================================
>
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>
>
>
Author
4 May 2006 1:30 AM
Steven Cheng[MSFT]
Thanks for the followup.

Then, we could only use the current behavior so far.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)