-
Notifications
You must be signed in to change notification settings - Fork 136
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
Comments
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. |
@deeknow how are you expecting the PR? I don't think the file manager source is on Github. |
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? |
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
The text was updated successfully, but these errors were encountered: