canvas-lms
canvas-lms copied to clipboard
Unexpected file renaming format (with files with multiple periods)
Summary:
Resubmitting files with the same name results in unexpected renaming format.
Steps to reproduce:
- Submit a file. The file should have multiple periods.
- Submit the same file again.
Expected behavior:
The renamed file inserts -1 (-{X} in general) after the last period. (test.test.test-1.pdf in this case)
Actual behavior:
The renamed file has -1 inserted after the first period. (test-1.test.test.pdf in this case)