-
Notifications
You must be signed in to change notification settings - Fork 380
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
Broken behavior: files containing dots in the name #1580
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
Thank you for submitting your first issue to this project. |
Hello @Goncaloo42, I was able to resolve this issue. Will be creating a pull request. Below are the attachments, Thanks, |
Hello @Goncaloo42, The solution is as below, SolutionWhile loading the attachment preview at method The old code is as below,
And since, the scenario when we have one or more dots (".") in the file name, the The corrected code is as below
this change will get the exact extension of the file. below are the images from my local workbench.Thanks, |
Hello @NishkalankBezawada, Now I just need to wait for your changes to be live so I can update the reference in my solution, correct? |
Hej, Well that's true. //Nishkalank |
@Goncaloo42 many thanks for raising this issue, and many thanks @NishkalankBezawada for the PR. |
New release just published, closing |
Category
[ ] Enhancement
[ ] Bug
[x ] Question
Related issues? #1022
Version
Please specify what version of the library you are using: [3.9.0]
Expected / Desired Behavior / Question
I'm having an issue using the ListItemAttachments component from your library. Basically after adding and configuring the component on a form inside a SharePoint WebPart, pretty much everything works as expected. BUT one thing that does not behave as expected is when adding attachments that contain one or more dots (".") in the name, the file type icon is not displayed (ex. PDF, Word, etc.)
After researching, I found out that this issue was already addressed here
Can someone help me figure why is it still showing blank icons for me?
Thanks!
The text was updated successfully, but these errors were encountered: