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

FileManager S3 settings problem #189

Open
ts00617355 opened this issue Jul 14, 2016 · 3 comments
Open

FileManager S3 settings problem #189

ts00617355 opened this issue Jul 14, 2016 · 3 comments

Comments

@ts00617355
Copy link

ts00617355 commented Jul 14, 2016

I use S3 (Amazon Simple Storage Service) to connect my FileManager,

http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGET.html

it's says here has max limit 1000.
so if i have over 1000 pics, it will missing some file or directory in interface
is there has any possible to read by each directory only from s3 ?

like this http://mystorage.s3.amazonaws.com/?prefix=direcctory

@deeknow
Copy link

deeknow commented Jul 18, 2016

Hey there. As you point out there is a limit on the max number of file records returned by S3. We don't have pagination in the file-manager control at present.

It should be possible to add pagination to the file-manager view by passing the marker offset to retrieve the next set of records when the ajax.get() call is made in amazon-s3.js.

Another pagination approach would be to use the prefix argument, that would mean uploading your files using some sort of naming convention (e.g. fruit-apple.jpg, fruit-banana.jpg, vege-potato.jpg). You may eventually run up against the same 1000-file limit for a given prefix though.

Another thing you could try is creating folders in your S3 store via the AWS admin interface. We dont currently have any UI controls in file-manager to create folders but file-manager will display them if they exist. So by creating your folders in AWS you can then use file-manager to upload to those folders, and users can then choose/browse files from those folders using file-manager. This solution doesn't require any code changes on your part.

Please feel free to send us a pull request if you do add this functionality and are able to share it with the project.

Hope that helps.

@Petah
Copy link
Contributor

Petah commented Jul 18, 2016

@deeknow how are you expecting the PR? I don't think the file manager source is on Github.

@deeknow
Copy link

deeknow commented Jul 19, 2016

Aha, yeah thanks Dave, that might make things tricky :)

Still, might be possible to patch raptor.js (assuming the OP has a commercial copy of Raptor which includes the file-manager/S3 stuff)

PS - any thoughts Dave about the approaches mentioned above, or any others?

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

3 participants