-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add view for all of a user's S3 files #169
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
Comments
I guess i will be making changes here. Here the project array contains the projects and the project contains all the files in it. So we can iterate over the projects and list the files with url. Other than this bug. |
I definitely think there is room to improve the S3 querying/storage, since when I implemented the S3 uploading I wasn't thinking about querying. Do you think it makes sense to store files on S3 by username and project id? Then, for example, say you wanted to upload a file |
I guess this means we'd also have to write a script to migrate all of the existing files to the new naming scheme, but I don't think that would be too hard. We'd just loop through all of the projects stored in MongoDB, look at the files that have a URL, change the URL, and then update the file with the new URL. |
Exactly i thought about it similarly. Outcome of our investment in establishing hierarchy - But surely more structured S3 won't hurt. |
I just realized that if a user uploads a file and the project has never been saved, then the project doesn't have an id. So I think we'll have to structure these like |
…'s s3 files to be namespaced under their userid
No description provided.
The text was updated successfully, but these errors were encountered: