Click to See Complete Forum and Search --> : Remember the value of file input


k0r54
05-31-2006, 04:41 AM
Hi,

I seem to be having a problem remebering the image details on my form.

Basicly if the form is incorrect it goes back. I get it to remember the details by

value="' . $_POST['fieldname'] . '"


This however doesn't work it my image field. Is there a way around this?

Thanks
k0r54

bokeh
05-31-2006, 05:00 AM
Is there a way around this?No! This behaviour is the sandbox protecting the client. It's like this for a good reason.

k0r54
05-31-2006, 05:08 AM
oh, so there is no way to auto fill in that field? why is that?

bokeh
05-31-2006, 05:11 AM
why is that?Due to the privacy and security issues such a behaviour would raise.

k0r54
05-31-2006, 05:18 AM
the only thing i want it to remember is the location on the users HDD or watever. I dont quite see the securtiy issues there. :(

Never mind though - bit of a pain but i suppose its there for a purpose.

Thanks

bokeh
05-31-2006, 05:23 AM
I dont quite see the securtiy issues there.Just because you don't see it does not mean it does not exist. Since it is possible to make forms automatically submit themselves if the behaviour you are asking for were to be implemented it would be possible to steal files from clients' machines.

k0r54
05-31-2006, 05:25 AM
oh ... makes more sense now.

Cheers bohek for the explaination.
k0r54