Text inside upload field

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I googled a lot and read that it is impossible to have some text displayed
in an upload field. Lets assume I don't fear the security problems that
arise from this. Is there any chance that I can display some text in
there? I'm working on an edit dialog and want to display if a file has
already been uploaded. So something like "Already uploaded" inside the
upload field would tell the editor to upload only in case of replacing the

So, any ideas?


Re: Text inside upload field

Quoted text here. Click to load it

You didn't google sufficiently. Check

Quoted text here. Click to load it

That's rather irrelevant. Browser vendors use security as a lame excuse for
not implementing file input ("file upload") properly, and they aren't
really interested in what you or I think about security.

Quoted text here. Click to load it

Surely, for users who use Opera. But of course the text there should not be
just "some text" but a useful default value for the filename.

Quoted text here. Click to load it

An "edit dialog" can mean a million things.

Quoted text here. Click to load it

No, that would be a completely wrong approach.

I have no idea of how you are going to recognize that the file has already
been uploaded. Certainly that would require tools external to HTML. But if
you can determine such a situation, it should of course be expressed
_before_ the upload field.

Yucca, http://www.cs.tut.fi/~jkorpela /
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Site Timeline