pnp / pnp/sp-dev-fx-controls-react
"Undefined" text is showing initially before showing the uploaded image while uploading it from Upload/Upload Files options using FilePicker Control
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 433
- Forks
- 418
- Avg merge
- 5d 6m
- Merged PRs (30d)
- 19
Description
Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your
needs please complete the below template to ensure we have the details to help. Thanks!
Please check out the documentation to see if your question is already addressed there. This will help us ensure our documentation is up to date.
Category
[Y ] Bug
Version
Please specify what version of the library you are using: [ 3.20.0 ]
If you are not using the latest release, please update and see if the issue is resolved before submitting an issue. It is not resolving the issue even after updating the package.
Expected / Desired Behavior / Question
While uploading an image using Upload/Upload Files option from FilePicker, It should show only the image uploaded in the component and should not show undefined text before rendering the image.
Observed Behavior
It is showing Undefined text before rendering the uploaded image in the component after uploading the image using Upload/Upload files option.
Steps to Reproduce
- Add any component where file picker is used to upload image
- Click on Image icon to upload the image
- Select Upload/UploadFiles option from FilePicker and select any image and click on AddFile button
- Observe that the undefined text is loading initially before loading the uploaded image.
Thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the FilePicker Control with the Upload/Upload Files flow described in the steps, using library version 3.20.0 or the latest release. Trace the image rendering path after AddFile is clicked and verify that the uploaded image appears without displaying undefined text first.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100