Click to See Complete Forum and Search --> : Capturing File Upload action...


Wild Goose
09-07-2004, 02:58 PM
Hi guys,

The answer to this may be via HTML or Javascript...

I want automatically refresh the page when I select a file to upload (the refreshed page will display the file which was posted back).

Is there a way I can capture the "file select" event so I can trigger a redirect?

If I'm not being clear please let me know...

Cheers guys!

artemis
09-07-2004, 04:47 PM
i think what you're looking for is the onchange event, like so:

<input type="file" onchange="function()">

hope this helps

Wild Goose
09-07-2004, 05:43 PM
Got it!

Cheers Artemis!