Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Fri, 29 Jul 2005 09:06:05 -0700,    group: microsoft.public.inetserver.asp.components        back       


I want to code upload functionality   
Now I have it. Where I am using

<INPUT id="fWaiver" style="FONT-SIZE: x-small; FONT-FAMILY: Verdana" 
type="file" name="File2" runat="server"><br>

<INPUT id="bWaiverUpload" style="FONT-SIZE: x-small; FONT-FAMILY: Verdana" 
type="submit" value="Upload" name="bWaiverUpload" runat="server">

That opens up by file browser. NOW, I need it to show a perticular type of 
file. For my example. I want to it to show only *.pdf files on the browser; 
instread of all files. Is that possible? How would I do that?

Thanks.
date: Fri, 29 Jul 2005 09:06:05 -0700   author:   Tash

Re: I want to code upload functionality   
ASP can't control that.  It's a client thing.  What you'll probably wind up
having to do is checking the file extension with some javascript code, and
backing up the validation with server-side code to defend against file
types. It's less than ideal.  But read here while you're at it:

http://www.cs.tut.fi/~jkorpela/forms/file.html#filter

Ray at work




"Tash"  wrote in message
news:318F16EA-6E7C-43A9-9C2F-29857BAF1CFD@microsoft.com...
> Now I have it. Where I am using
>
> <INPUT id="fWaiver" style="FONT-SIZE: x-small; FONT-FAMILY: Verdana"
> type="file" name="File2" runat="server"><br>
>
> <INPUT id="bWaiverUpload" style="FONT-SIZE: x-small; FONT-FAMILY: Verdana"
> type="submit" value="Upload" name="bWaiverUpload" runat="server">
>
> That opens up by file browser. NOW, I need it to show a perticular type of
> file. For my example. I want to it to show only *.pdf files on the
browser;
> instread of all files. Is that possible? How would I do that?
>
> Thanks.
date: Fri, 29 Jul 2005 15:17:18 -0400   author:   Ray Costanzo [MVP] my first name at lane 34 dot commercial

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us