views:

50

answers:

3

Hello

How can I upload a file using cakephp ? is there any framework support for file uploading or should I write my own code for this ?

Thank you

+1  A: 

This component could help you out: http://cakeforge.org/snippet/detail.php?type=snippet&id=36. Allows uploads to either a database or a directory using FTP. I have some experience with CakePHP, however I have not yet tried this component.

Anzeo
Cakeforge is no longer in use (superseded by thechaw at the end of 2008, then github at the end of 2009) and only remains live to provide an archive of old code. This particular component was written for CakePHP 1.2, and hasn't been updated since 1.3 became stable.
deizel
A: 

both is possible

for beginners this is probably the better choice: http://www.milesj.me/resources/script/uploader-plugin

mark
+2  A: 

CakePHP upload plugins in active development:

You could also use the File class, but I wouldn't reinvent the wheel on this one.

deizel
related: http://stackoverflow.com/questions/3148203/best-practice-to-upload-files-in-cakephp/3162144#3162144
deizel