Closed sithu951 closed 5 months ago
Hi @sithu951 thanks for pointing this out! We are still working on the frontend part of the gen 2 file upload/download experience. We are planning to overhaul the frontend docs for this new experience once the implementation is stable. We'll take this feedback into account when updating the docs!
Hi @sithu951 thanks for pointing this out! We are still working on the frontend part of the gen 2 file upload/download experience. We are planning to overhaul the frontend docs for this new experience once the implementation is stable. We'll take this feedback into account when updating the docs!
Hi @edwardfoyle, based on the current version of the library is it possible to upload a file using uploadData
? I see that it adds a "public", "private", "protected" sub folder and it gives me an 403 error. I used the Owner-based access config. Is there another way to achieve the upload?
Hey @VivianaGarces, the documentation has been updated with custom paths and access patterns. Closing the issue. https://docs.amplify.aws/react/build-a-backend/storage/
Environment information
Description
Problem Description In the process of integrating AWS Amplify's storage capabilities with my project, I encountered challenges understanding the transition from Gen1 to Gen2, especially regarding file uploads with the new access patterns. The current Amplify Gen2 documentation details access patterns for authenticated users, guests, groups, and owners but redirects to Gen1 documentation for practical implementation of file uploads and downloads.
The redirection to Gen1 documentation is here: Gen1 upload docs. This section uses accessLevel parameters such as guest, public, and private, automatically creating corresponding folders. However, there's a lack of guidance on how to upload files directly to a custom path (e.g., '/foo/*') without being confined to these predefined folders, which is critical for projects needing more flexible storage structures.
Feature Request I propose an enhancement or update to the Amplify Gen2 documentation that:
Provides Clear Examples and Guidelines on how to upload files to custom paths (e.g., '/foo/' or '/foo/{entity_id}/') without defaulting to the public/private/protected folder structure. This includes examples using the new access patterns that Gen2 supports. Expands on Access Control Mechanisms for these custom paths, detailing how permissions can be managed in a way that aligns with Gen2's flexible access controls.
Rationale The ability to directly upload files to custom paths with detailed control over access levels is essential for developers to fully leverage AWS Amplify's storage capabilities, ensuring security and flexibility in how data is organized and accessed. Enhanced documentation in this area would greatly aid in the adoption and effective use of Amplify Gen2, especially for applications with complex storage and access requirements.
Thank you for considering this request. Enhanced clarity and guidance on this topic would significantly benefit the developer community, facilitating more sophisticated and secure storage solutions in our applications.