Re: [fw-general] Zend_Form_Element_File and previewing

2009-04-17 Thread Bart McLeod
I haven't done this, but I would upload the files using ajax an I think 
you should be looking at Zend_Http_Request for that and store the 
filenames in hidden formElements for persistence.


-Bart

Justin Hendrickson schreef:
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?


Re: [fw-general] Zend_Form_Element_File and previewing

2009-04-16 Thread Thomas Weidner
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?





[fw-general] Zend_Form_Element_File and previewing

2009-04-16 Thread Justin Hendrickson
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?