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

Prettier names when a file already exists

XMLWordPrintable

    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • MDL-37641-master
    • 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'

      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

            fred Frédéric Massart
            fred Frédéric Massart
            Andrew Davis Andrew Davis
            Damyon Wiese Damyon Wiese
            David Monllaó David Monllaó
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.