-
Notifications
You must be signed in to change notification settings - Fork 317
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
add intial path to StorageBrowser #6325
Comments
Hi @ajishab is your project using the predefined // predefined StorageBrowser
import { StorageBrowser } from '@aws-amplify/ui-react-storage';
// createStorageBrowser
import { createStorageBrowser } from '@aws-amplify/ui-react-storage/browser'; |
@calebpollman we are using createStorageBrowser and specifiying S3 via amplif configure, with below code. Basically, we want to add a path from react router (or even query param) to the page and have it so that if a path is specified, it loads the bucket in the specified folder vs at the root. The use case is we want to be able to send users a link to a particular folder that they are actively working on, vs having to send them a link and tell them to goto a particular folder within the link. For now its just ease of use and we dont care if users can still navigate to other folders within the bucket, but that would be something we would like to do in the future as well.
|
@ajishab, we're marking this as a documentation feature request because we need to improve the docs to provide instructions on how to do this. This is available out of the box with StorageBrowser, but want to document the proper way to set this up. We'll provide a PR linked soon with the documentation updates when ready. Thanks! |
On which framework/platform would you like to see this feature implemented?
React
Which UI component is this feature-request for?
Storage
Please describe your feature-request in detail.
with the native s3 console I can share links to subfolders, with storage browser it always refreshes at the base level (all configured paths). I would like to be able to browse to a subpath automatically based on URL.
Please describe a solution you'd like.
I want to use a react router to define the path to display in storage browser. eg vs storage browser starting at the at base level.
We love contributors! Is this something you'd be interested in working on?
The text was updated successfully, but these errors were encountered: