milesj / uploader

[Deprecated] A CakePHP plugin for file uploading and validating.
MIT License
193 stars 73 forks source link

Request: Option to save S3 key instead of full URL #113

Closed rickydunlop closed 11 years ago

rickydunlop commented 11 years ago

Using AWS CloudFront for a CDN becomes difficult as the full S3 url is saved. It would be great to have an option in the transport settings that allows us to save just the key to the database. This would allow us to construct the URL to the S3 object manually.

What do you think?

milesj commented 11 years ago

Sounds like a good idea to me, so I added a returnUrl option that you can set to false. This should return the key (basically the filename).

The change was made in Transit 1.1.1, so doing a composer update will pull the change in.

rickydunlop commented 11 years ago

Great, thanks for this.