About FIle Upload component, how to display uploaded data #3039
Answered
by
cschroeter
tangbohao37
asked this question in
Q&A
-
After form submission, how can we display the data returned from the backend when revisiting the current page? For example, if the backend returns data such as an image URL, 'name', and 'size'. Is there a way to pass custom data into useFileUpload? |
Beta Was this translation helpful? Give feedback.
Answered by
cschroeter
Nov 26, 2024
Replies: 1 comment
-
Hey mate, thanks for reaching out! The |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tangbohao37
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@tangbohao37
Hey mate, thanks for reaching out! The
FileUpload
component uses the [File API](https://developer.mozilla.org/en-US/docs/Web/API/File_API), so the data is read-only and can't be manipulated directly. Instead, you should render a different output based on the data you receive from your server.