Log in

View Full Version : Refill "File" form field with stored image data



pelaej
10-22-2010, 02:47 PM
Hello,

Is there any way to populate an input type=file form field with stored information from a mysql database? And if so, is this a security risk?

Thanks in advance!!!!

prasanthmj
10-22-2010, 06:11 PM
No; You can not fill the file upload box value. There is security risk. That is the reason why it is not allowed by the browsers.

pelaej
10-22-2010, 06:22 PM
Thanks prasanthmj! I had a feeling that was the answer, but just wanted to make sure...

djr33
10-22-2010, 07:28 PM
To expand a little: theoretically you could. I don't know if it's allowed in HTML or not. But in reality, you cannot because all browsers ignore this. It is the same with Javascript.