-
-
Notifications
You must be signed in to change notification settings - Fork 689
Specific file names cause the extension to not be set correctly with options.keepExtensions "test(.123).pdf" #980
Copy link
Copy link
Open
Labels
Area: APIsThings related to external and internal APIsThings related to external and internal APIsArea: SecurityThings related to security.Things related to security.Priority: MediumThis issue may be useful, and needs some attention.This issue may be useful, and needs some attention.Status: CompletedIssue with steps to reproduce the bug that’s been verified by at least one reviewer.Issue with steps to reproduce the bug that’s been verified by at least one reviewer.Status: In ProgressThis issue is being worked on, and has someone assigned.This issue is being worked on, and has someone assigned.Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.
Metadata
Metadata
Assignees
Labels
Area: APIsThings related to external and internal APIsThings related to external and internal APIsArea: SecurityThings related to security.Things related to security.Priority: MediumThis issue may be useful, and needs some attention.This issue may be useful, and needs some attention.Status: CompletedIssue with steps to reproduce the bug that’s been verified by at least one reviewer.Issue with steps to reproduce the bug that’s been verified by at least one reviewer.Status: In ProgressThis issue is being worked on, and has someone assigned.This issue is being worked on, and has someone assigned.Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.
Support plan
Context
What are you trying to achieve or the steps to reproduce?
I am setting the option keepExtensions: true but when the file contains a period in the name with other characters it screws up the filePath created. It takes the first instance of the period and uses it instead of the final period. What is odd is I looked at using options.filename to get this corrected (which works) but the ext passed into the function is correctly '.pdf'.
What was the result you got?
These are files we received from clients that caused issues processing:
'test(.123).pdf' - became '8316b5c96ab192694f1fd3a00.123'
'EERS 1.1-CUR.pdf' - became '8316b5c96ab192694f1fd3a01.1'
What result did you expect?
The filepath was expected to have the correct extension .pdf