Anu
Joined: 01 Jan 2010 Posts: 82
|
Posted: Tue Feb 09, 2010 4:58 am Post subject: Rails File_column plugin and Attachment_fu plugin |
|
|
Hi,
The below Attachment_fu and File_column plugins are used for the purpose of file uploading in rails.let us know each of them briefly...
Attachement_fu plugin:
*This attachment_fu manages the server side upload process , and storage.
*It manages resizing too.
*Storage options includes --
1)saving to file system.
2)saving attachment into database.
3)saving into amazon s3 storage.
*And rails 1.2+ version only we can use this attachemnt_fu.
*Its having similarities with acts_as_attachment plugin.
*It has diffrent image processors like image_scine,mini_magick,and rmagick.
*And rmagick software is having imageprocessing features and memory usage.
*Minimagick is easier on memory than rmagick,because it runs the imagemagick command in shell.
*Every file or image stored as a individual record in this attachment_fu.
File_column:
*It handles saving files to the file system.
*Resizing of images,creation of thumbnails,and integration with ramagick.
*In this file name will be stored in the image column.
*Files will be stored in public/entry/image/<entry.id>/filename.
*Newly uploaded files stored at public/entry/tmp/<random>/filename.txt
*We can this in reusing the dispalys (validations).
*Rmagick resizes the image.
*This file_column is widely used for the purpose of file uploading.
*The main advantage of using this is we can easily intigrate the rmagick.
*And make file uploads really easy and has a nice integration with rmagick.
*Here we have some ways to set file storage location ,and we can do callbacks whenever require.
*File storage flexibility is good.
Thanks & Regards,
Anasuya.N |
|