From: Tim Slattery on
Roedy Green <see_website(a)mindprod.com.invalid> wrote:

>Look at the client side HTML on any forum that lets you select a local
>image for upload. You use <input type="file" and accept="list of
>acceptable mime types".

How would that work? How would the browser look at a file name and
decide whether that file is one of the specified types?

And how many browsers implement that property anyway?

The page at http://htmlhelp.com/reference/html40/forms/input.html
says: "Current browsers generally ignore the ACCEPT attribute." I
suspect that's true (but I don't know for sure).

--
Tim Slattery
Slattery_T(a)bls.gov
http://members.cox.net/slatteryt
From: Peter Olcott on

"Tim Slattery" <Slattery_T(a)bls.gov> wrote in message
news:qa94q59gem0ol0a1jar322ar9lh5on3i0f(a)4ax.com...
> Roedy Green <see_website(a)mindprod.com.invalid> wrote:
>
>>Look at the client side HTML on any forum that lets you
>>select a local
>>image for upload. You use <input type="file" and
>>accept="list of
>>acceptable mime types".
>
> How would that work? How would the browser look at a file
> name and
> decide whether that file is one of the specified types?
>
> And how many browsers implement that property anyway?
>
> The page at
> http://htmlhelp.com/reference/html40/forms/input.html
> says: "Current browsers generally ignore the ACCEPT
> attribute." I
> suspect that's true (but I don't know for sure).

I tried in on IE 8.0 and it is ignored. From the File
Selection DialogBox that is displayed There are three
filetypes that can be selected:
(a) All Files
(b) Image Files (including PNG)
(c) HTML files

I have tentatively rejected the Java way because it seems to
be less secure for the client.

>
> --
> Tim Slattery
> Slattery_T(a)bls.gov
> http://members.cox.net/slatteryt


First  |  Prev  | 
Pages: 1 2 3
Prev: Hamming Distance
Next: "this" pointer in a sublcass