Skip to content

This is an Amazon S3 File Upload Field extension for Symphony CMS

License

Notifications You must be signed in to change notification settings

patrickyan/s3upload_field

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Field: Amazon S3 File Upload

  • Version: 0.6.6
  • Author: Scott Tesoriere & Andrew Shooner & Brian Zerangue
  • Build Date: 2011-06-01
  • Requirements: Symphony 2.2+

Origin

This extension is a variation of the 'Unique File Upload Field' extension by Michael Eichelsdoerfer and the Akismet extension (for System Preferences) by Alistair Kerney. It uses the Amazon S3 PHP class written by Donovan Schonknecht, http://undesigned.org.za/2007/10/22/amazon-s3-php-class. This extension was started by Brian Zerangue, taken over by Andrew Shooner, and some slight modifications to get it working with Symphony 2.2 were made by Scott Tesoriere.

Overview

This extension functions as a basic replacement for file uploads, allowing hosting on Amazon S3 (it requires an Amazon S3 account). Uploaded files are world readable. It is not considered feature-complete; there is much additional functionality that could be added .If you have input, please contact Andrew Shooner through email or at the Symphony forums.

Installation

  1. Upload the 's3upload_field' folder in this archive to your Symphony 'extensions' folder.

  2. Enable it by selecting the "Field: Amazon S3 Upload", choose Enable from the with-selected menu, then click Apply.

  3. Under Preferences, add your S3 Access Key ID and Secret Access Key.

  4. You can now add the "Amazon S3 File Upload" field to your sections. Select the bucket you wish to store files in from the dropdown.

Change Log

0.6.6 - ME

  • Fix: Added sanitizing of filename upon uploading.

0.6.5 - ST

  • Changed algorithm for generating unique filename id to the one provided by Michael
  • Merged secret key changes (to password input field)
  • Cache-control is now allowed to be null

0.6.4 - ST

  • Properly removes old files when adding a new one
  • Added SSL option
  • Added Unique File option
  • Added Cache Control option in preferences, needs to be in seconds, defaults to 10 days

0.6.3 - ST

  • Wasn't setting the Content-Type for S3 files, thanks Michael!
  • Accidentally removed bucket if the filename was empty and it was the last file in the bucket
  • Wasn't properly removing files when a file was removed then saved

0.6.2 - ST

  • If the bucket gets deleted, it won't throw an exception
  • Dealing with the way files stored in the database, so even if you change the CNAME (or remove it), the proper URL will be displayed
  • Fixed editing an entry, it wasn't working with some legacy code!

0.6.1 - ST

  • Fixed a problem where an entry wouldn't properly remove itself completely

0.6 - ST

  • Now deletes a file from S3 upon deleting an Entry (this is optional and set upon creating a S3 field within a section)
  • You can specify an optional CNAME so the files will generate the proper URL without intervention
  • Bug fixes to get it working with Symphony 2.2
  • You can't add a field to a section until you setup your API keys
  • Added mimetype and size to the XML output

.5.1 alpha - AS

  • Corrected fatal error in field commit() function.

.5 alpha - A.S.

  • Added S3 class functionality.
  • Decided on public-read permissions for simplest usage.
  • Put bucket selection in Section editing view.
  • Stripped out some extraneous code from upload field this field is based on (Needs more pruning).

.1.0 alpha - B.Z

  • Initial release - posting code to work off of base. Need to integrate Amazon S3 class now.

To do

  • If the CNAME is removed or added, update all the files and fields so it has or doesn't have the CNAME, otherwise it will be kind of wonky
  • Proper error checking, there are still a few uncaught exceptions.

About

This is an Amazon S3 File Upload Field extension for Symphony CMS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published