News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

ProDevTips.com:
File Uploads with PHP Doctrine
September 01, 2008 @ 10:37:50

The ProDevTips blog has posted the fifth part of their look at using Doctrine with PHP. This time they focus on file uploads.

It's time to take a look at how file uploads can be integrated into the Doctrine validation and CRUD process. We will have a product in the form of a digital download as an example, it will have a screenshot image that can be maximum 250 pixels wide and high. The download itself will be a zipped file.

They set up their table definitions first and set up a few validation functions (update, insert and for the file data) to work on top of that. Custom upload/uploadImage and save methods handle the user's submission while a simple delete method makes removing images easy.

0 comments voice your opinion now!
file upload doctrine tutorial database table insert image


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: YAMMY!: DB to YAML conversion shell for CakePHP migrations

NETTUTS.com: Top 15+ Best Practices for Writing Super Readable Code

Software Testing Magazine: PHPUnit Tips & Tricks

Dave Dash's Blog: Finding things using Zend Search Lucene in symfony

Linode Library: Deploy High Performance Drupal Sites with Mercury on Ubuntu 10.04 (Lucid)


Community Events





Don't see your event here?
Let us know!


laravel opinion symfony2 unittest refactor release introduction install series community framework threedevsandamaybe podcast language api list code developer interview testing

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework