The problem is, that when you want to display a preview image then you need
to have to image already on the server.
And to have the image you need to have the files uploaded.
Look for example at Ebay and place an article to see how this works.
So you could upload the image, create a preview of them and display that to
the user.
And when he finished the complete task, presses submit on his form you would
move the image to it's final destination as it's already on the server.
Otherwise you would have to delete it from the server.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message -
From: "Justin Hendrickson"
To: "fw-general"
Sent: Friday, April 17, 2009 12:36 AM
Subject: [fw-general] Zend_Form_Element_File and previewing
I'm trying to create a Zend_Form that contains a couple of
Zend_Form_Element_File elements, amongst other things. I want to support
previewing the content before submitting, but I'm not sure how to make the
file elements stick from the preview to the submit. Has anyone found a
good
way of handling this?