How to bind retrieved files in file upload control of prime react V5.0.2?

UI Components for React
Post Reply
hirenchangela
Posts: 2
Joined: 02 Feb 2023, 09:22

02 Feb 2023, 09:31

How to bind retrieved files in file upload control of prime react V5.0.2?

I need to bind existing files in file upload control inside edit form. Please provide steps or documentation for the same.
Which type of data i need to provide to file upload control? So, it will display all the existing files in edit form.

I have already refer this link https://www.primefaces.org/primereact-v5/#/fileupload. But it will not useful for the same.

I am waiting for your kind revert on the same.

Regards,
Hiren Changela

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

10 Feb 2023, 17:51

You can't do that its not the purpose of the File Upload component.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

hirenchangela
Posts: 2
Joined: 02 Feb 2023, 09:22

11 Feb 2023, 08:29

Ohh...... Really!
This is very sad news from you.

I am not expecting this from Prime React. This look like very goofy thing.
This should have functionality for retrieve uploaded files or photos.

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

11 Feb 2023, 14:26

It is a file upload to load files from a users local computer. Its not mean to show files you have already loaded coming from a rest service.

This is just how browser's work? I don't understand any use case where you would want to show existing files and if so there are better ways to do it than try and use File Upload?
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests