2008年8月25日星期一

Re: [fw-mvc] Zend_Form_Element_File upload issues

Could you place a feature request for this?

One issue here is that one of the validators for a file upload is, well,
an upload validator: ensuring that there were no errors. The element
cannot be said to validate unless this is true. We could potentially
create a flag that says, "do not perform the upload validation", but
this could lead to other issues later if it cannot actually perform the
upload -- so we need to go about this carefully.

Just posted http://framework.zend.com/issues/browse/ZF-4062 ; though it might be easier to simply delete the file manually if the entire form fails validation, as you suggested in a later email.

If there _is_ a way to implement this that keeps the validation process from performing any real actions (such as moving a file) on the server, that'd be great...but that said, I do understand _why_ the validation process performs an action in this instance.

Thanks!
Adam

没有评论: