in-client local src replace. Possible?

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

Threaded View

I would like to present a page that would show a default image along
with a button.  The button would do a local file upload of sorts. I
would replace the image with the locally selected file, then refresh
the page.

Is this possible?



Re: in-client local src replace. Possible? wrote:
Quoted text here. Click to load it

If this is going on a Web server where others can access the page,
some browsers might block any DIRECT attempt to access a local
file.  This is a security feature to prevent privacy violations
(that is, to prevent someone's Web page from grabbing a file from
your computer).  
However, it is possible to design a Web page to use your operating
system's file-selection capabilities.  You might want to look at
the source HTML at <URL: .  When viewed on
my PC (Windows 98SE), the "Browse" button there makes use the
Windows 98 "File Upload" dialogue.  That system-specific capability
is chosen as a result of the Web page's interface with my browser
(which is a version for Windows).  


David E. Ross

I use Mozilla as my Web browser because I want a browser that
complies with Web standards.  See <URL:>.

Site Timeline