Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hi

I came across this package and it looks awesome!

Was wondering if it has the behaviour for viewing images already uploaded and If so how this would be achieved.

You must be logged in to vote

I got same doubt few days ago.
I think it could be performed by providing a valid imageUrl prop to FileItem component.

Replies: 2 comments · 1 reply

Comment options

I got same doubt few days ago.
I think it could be performed by providing a valid imageUrl prop to FileItem component.

You must be logged in to vote
0 replies
Answer selected by JinSSJ3
Comment options

Hi @Davisa1 , Thanks for your opinion 😄 .

It is correct what @steffanny-dawson commented, FileItem can display the uploaded image if you provide imageUrl prop to FileItem component.
This prop must be an string representation like URI, base-64 string or a path in the directory. Wha is still needed is to include is a File object and other info. You can check this codesandbox example in order to see a live demo that covers that use case.

In next release we will launch 🚀 another way to display alredy uploaded files. Hope the solution above works for you 👍 .

You must be logged in to vote
1 reply
@Davisa1
Comment options

Amazing! You guys are awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.