Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintaining folders on buckets #22

Open
brendo opened this issue Mar 24, 2015 · 3 comments
Open

Maintaining folders on buckets #22

brendo opened this issue Mar 24, 2015 · 3 comments

Comments

@brendo
Copy link
Member

brendo commented Mar 24, 2015

I'm just wondering if anyone has used this extension to allow the fields to upload files into a nested folder structure on the bucket? As I understand, this field currently uploads all files into the root of the bucket.

My client requires that images go into an /images folder on the same bucket as files (which would live in /files folder). It seems to be a simple file naming convention which allows the files to be displayed a traditional folder structure via the AWS console, the file just needs to be uploaded with the 'folder' prefixed to the filename.

I'm thinking of enabling this just by having an additional setting on the field which prepends the value to the file upon upload, eg. '/images' would be added to beach.jpg to allow it to live in http://s3.amazonaws.com/{bucket}/images/beach.jpg

Has anyone does this before (happy to merge rather than develop from scratch) :)

@nitriques
Copy link
Member

@andrewminton had something to upload in different folders, but it was not based on S3 (it was based on the regular upload field). I have not seen anything like that anywhere else.

@michael-e
Copy link
Member

Nor I have I ever seen or done it.

@cbwl
Copy link

cbwl commented Aug 4, 2015

I hacked together #24 for this but I don't really know what I'm doing so I'm sure it's broken in many ways. If someone has a chance to take a look at it that might be handy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants