I'm looking to find a better and correct way to upload a multiple image on one form at the front page. What i am looking for is for example for user registration, i want the user be able to upload multiple image (probably it's better if it has like an ajax functionality where we can add the file upload field on the form)
Is it correct if on the Member dataobject i create it like this :
'has_many' => array(
'Pic' => 'Image'
Then how to create the correct form, so user can upload more than one picture from one process.
Hey actually the functionality i want is exactly like on this forum attach file functionality, see we can browse multiple file then upload it at one time. Can someone please point me a way how to do that?
Thx so much for your reply, may you give me the sample or the doc please ?
I found that on this forum, it used FileField , but the thing is i want only to upload image, and SimpleImageField won't do it, because i want multiple upload (if it can show the thumbnail of the image would be better).
I think i got the swfupload working, and you are right, that's quite what i want, but i notice something when using swfupload on the form, if we have validate some field, then we browse the file after we submit, it will upload the file/image first then it will redirect back to the form with the validation, but the file is already uploaded if i checked.