Forums

file upload element image preview

klaasvaak 02 Oct, 2013
Hello all

Yesterday i bought the pdf book ChronoForms displaying uploaded images from greyhead, and i thought that i was able to find the solution for displaying (preview) an image when i select an image in de file upload button in a form. But to bad that this pdf was not related to my problem / question. So now i need some help.

Is it possible to add the folowing code from http://jsfiddle.net/LvsYc/ to my form?
The form i made has 4 file upload elements.

Regards
Klaasvaak
klaasvaak 03 Oct, 2013
some more info from the example above
i need to add the runat="server" to the < form .... > tag
but when i do that in the field

Form tag attachment

i,m getting the error

Warning: array_key_exists() expects parameter 2 to be array, null given in ?

Is that the wrong place to add?
klaasvaak 04 Oct, 2013
I used another one fiddle.jshell.net/aAuMU/show/
and i get this one working in my form
But to bad this function (window.FileReader) dont work under ie8, ie9.

Regards
KV
GreyHead 04 Oct, 2013
Hi KV,

I think that support for this was only introduced in HTML5 so it won't work in any older browser.

Bob
This topic is locked and no more replies can be posted.