-
Notifications
You must be signed in to change notification settings - Fork 24
Image viewing on files already uploaded #244
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
🎉 1
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
-
I got same doubt few days ago.
I think it could be performed by providing a valid imageUrl prop to FileItem component.
Beta Was this translation helpful? Give feedback.
All reactions
-
🎉 1
-
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 👍 .
Beta Was this translation helpful? Give feedback.
All reactions
-
Amazing! You guys are awesome!
Beta Was this translation helpful? Give feedback.