Skip to content
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

FileUpload: Access to files in the FileUpload Component #3174

Closed
CH-Chonsu opened this issue Aug 23, 2022 · 0 comments · Fixed by #3176
Closed

FileUpload: Access to files in the FileUpload Component #3174

CH-Chonsu opened this issue Aug 23, 2022 · 0 comments · Fixed by #3176
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@CH-Chonsu
Copy link

Describe the feature you would like to see added

I would like to access the files added to the FileUpload component as I did in v7.x

Is your feature request related to a problem?

Previous file access via state:
fileUploadRef?.current?.state.files

Reason for this behaviour:
I do add some information along with the files and the files are only used as an attachment. therefore I do make an api call to store the information on the database and if that succeeds the mechanism will continue to store the files via signed url on a file store/bucket which I receive as result with the first request.

Describe the solution you'd like

fileUploadRef.current?.getFiles()

Describe alternatives you have considered

itemTemplate setting the files but that causes to many rerenders and is a dirty hack :-) .

Additional context

No response

@CH-Chonsu CH-Chonsu added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Aug 23, 2022
@melloware melloware self-assigned this Aug 23, 2022
@melloware melloware added this to the 8.5.0 milestone Aug 23, 2022
melloware added a commit to melloware/primereact that referenced this issue Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants