jump to navigation

Zend Framework: No File Upload
June 8, 2008  Posted by Al Castle

5comments Categories: Puter Stuff, Web Design & Dev, gnash-teeth   Tags: , , ,

My latest realization is that even though Zend Framework is version 1.5, it has absolutely no support in Zend_Form for file uploads.

Again, this seems to be a very common requirement for a web application which is not included. This limitation does not appear to be mentioned in the documentation either. I ended up searching through some forums to discover that it’s not implemented yet.

WTF?

Version 1.5 - Framework. Yeah.

Update:

Wil Sinclair of the Zend Framework responded in the comments about the necessity and difficulty of balancing what to include within the framework and the ability to keep it flexible. While I can appreciate this, I have to wonder why include input type password, or what about textarea instead of input type file. Why even create Zend_Form then?

To be clear I am not suggesting that a class be built to support file uploading, processing, saving, renaming and such. Simply that I am surprised that Zend_From does not appear to have support for input type=’file’ in the version 1.0-1.5 release. A web development framework should include the basics at least - Password, Text, Checkbox, Radio, File, Textarea, Submit.

Zend Framework includes plenty of classes for extraneous things like -

Zend_Service: Akismet, Amazon, Audioscrobbler, Delicious, Flickr, Nirvanix, Simpy, StrikeIron and Yahoo!

While I appreciate that these (and others) are included, and will no doubt make use of them as time goes on, surely those should all be secondary to some basics. To me, even (Zend_)PDF creation and (Zend_)Feed processing would be secondary to something as rudimentary as Zend_Form with the ability to select a file by version 1.0.

Not to say I’m not appreciative of the work that’s been done and the flexibility it provides me, I did after all choose it over the other frameworks I’ve mentioned in a previous post. It’s not as if I can’t write my own either, but simply that I find the absence of full disclosure in the documentation as well as the absence of this seemingly basic thing to make me say, WTF?

If I’ve missed it and it’s in a 14pt, bold font, blinking, marquee on the documentation page, then I humbly apologize. If it’s on a wiki or roadmap somewhere then I suggest you move it on over to the documentation pages where I’m looking at usage examples.

I’ll continue to post my grievances and no doubt eventually praise as I muddle through learning how to use this framework, so stay with me.

Share/Save/Bookmark

The Real Homer Simpson
June 8, 2008  Posted by Al Castle

add a comment Categories: Picture of the Day, Squirrels   Tags: , ,

This is pretty freaky.

This is freaky.

Share/Save/Bookmark