canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

Unexpected file renaming format (with files with multiple periods)

Open NovaSagittarii opened this issue 1 year ago • 0 comments

Summary:

Resubmitting files with the same name results in unexpected renaming format.

Steps to reproduce:

  1. Submit a file. The file should have multiple periods. image
  2. Submit the same file again. image

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)

Additional notes:

NovaSagittarii avatar Feb 10 '24 07:02 NovaSagittarii