Skip to content

A plugin that will upload files and retrieve them for display.

License

Notifications You must be signed in to change notification settings

mediaslave/phrails-paperclip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

The following PHP package will be required depending on what you are trying to do.

Save to cloud:

Curl - http://www.php.net/manual/en/book.curl.php
FileInfo - http://www.php.net/manual/en/book.fileinfo.php

Image manipulation:

ImageMagick - http://www.php.net/manual/en/book.imagick.php

Phrails-Paperclip Ini File

This plugin expects that a config/phrails-paperclip.ini in the Phrails project.

It can be empty for use with File type attachments.

We currently only use it with Rackspace Cloud Files. Your File would look something like:

[global]
user = <username>
key = <cloud-resource-key>

[development]
<model-name> = <container-in-the-cloud-resource>

[production]
<model-name> = <container-in-the-cloud-resource>

Under each environment you can have as many = tags as you need.

About

A plugin that will upload files and retrieve them for display.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages