the file upload just generates the html <input type=file>, which is the only
supported way for a browser to upload a file. if you want a different
behavior, you would need to write an active/x control and get you users to
install it.
some browsers (not IE) support the w3c accept attribute which would allow
specifying the allowable mime types.
the browse is implemented by the bowser, and the only attibute that client
script can look at is the filename, no size or mimetype (though you coul
maybel derive this from the extension).
-- bruce (sqlwork.com)
> I need a way to let my users browse for a file but I do not want to use the
> asp.net 2.0 FileUpload control. I want to put a button and a textbox on a
[quoted text clipped - 8 lines]
>
> Keith
siccolo - 04 Mar 2008 19:43 GMT
On Mar 3, 7:17 pm, bruce barker
<brucebar...@discussions.microsoft.com> wrote:
> the file upload just generates the html <input type=file>, which is the only
> supported way for a browser to upload a file. if you want a different
[quoted text clipped - 24 lines]
>
> - Show quoted text -
you can try to experiment with Scripting.FileSystemObject and
javascript ...
see my article at Custom File Upload at
http://www.siccolo.com/Articles/CodeProject/UploadControl_Javascript/...
...more at http://www.siccolo.com/articles.asp