-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
#2794 fix document attachment label #2919
#2794 fix document attachment label #2919
Conversation
The diff affects only one Please let me know if I should add screenshots from other clients. |
Bump @thienlnam to review. |
Tested IOS last friday (Worked well), currently running into issues with my android emulator so I will merge once I get that sorted out and tested |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, works as expected!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
name: fileData.fileName || 'chat_attachment', | ||
name: fileData.name || 'chat_attachment', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the issue for the document picker but breaks it for the image picker as both use this function
one would call it with fileData
that has fileName
- image-picker results, the other with fileData
that has just name
This should have been changed to
name: fileData.fileName || fileData.name || 'chat_attachment'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I agree.
@thienlnam , do you want me to create a new MR for this particular change or should this be a part of MR for this new issue @kidroca has created?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend creating a new pull request with those changes, tag the new issue that @kidroca created and then add me as a reviewer on it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thienlnam
Here is the PR. I can't manually add you to the list of reviewers.
#3408
Thanks
Details
Documentation for RNDocumentPicker says that the returned object has
name
and notfileName
key.Fixed Issues
Fixes #2794
Tests/QA Steps
PDF attachment:
non-PDF non-image attachment:
.xsl
).Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
PDF
non-PDF non-image
Android
PDF
non-PDF non-image