Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-37641

Prettier names when a file already exists

    Details

    • Testing Instructions:
      Hide
      1. Name a file 'MDL-37641.txt'
      2. Go to your privates files
      3. Upload the file
      4. Make sure it uploads ok
      5. Upload the file again
      6. Make sure you're asked to rename it to 'MDL-37641 (1).txt'
      7. Upload the same file again
      8. Make sure you're asked to rename it to 'MDL-37641 (2).txt'
      9. Drag and drop the same file
      10. Make sure you're asked to rename it to 'MDL-37641 (3).txt'
      11. Rename 'MDL-37641 (2).txt' to 'MDL-37641 (Moodle is great).txt'
      12. Upload the same file again
      13. Make sure you're asked to rename it to 'MDL-37641 (4).txt'
      Show
      Name a file ' MDL-37641 .txt' Go to your privates files Upload the file Make sure it uploads ok Upload the file again Make sure you're asked to rename it to ' MDL-37641 (1).txt' Upload the same file again Make sure you're asked to rename it to ' MDL-37641 (2).txt' Drag and drop the same file Make sure you're asked to rename it to ' MDL-37641 (3).txt' Rename ' MDL-37641 (2).txt' to ' MDL-37641 (Moodle is great).txt' Upload the same file again Make sure you're asked to rename it to ' MDL-37641 (4).txt'
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-37641-master

      Description

      Improve the way the repository generates new file names when the file already exists. Currently a file will have _2 appended to it. So we can quickly get this:

      • test.txt
      • test_2.txt
      • test_2_2.txt

      The improvement could follow what most OS do:

      • test.txt
      • test (1).txt
      • test (2).txt

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    14/May/13