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

Extension and type of uploaded files

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.2.2
    • Fix Version/s: None
    • Component/s: Files API
    • Labels:
      None
    • Environment:
      Moodle 2.2.2, russian
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      1) Choose a file with non-empty extension when you upload a file. I.e. 'file.doc'.
      2) Type a dot and the end of 'Save as' field's content. I.e. 'This is a file.'.
      3) Upload.
      The file's name will be 'This is a filedoc' and the file's type will be unknown (icon with a questyion symbol).

      Show
      1) Choose a file with non-empty extension when you upload a file. I.e. 'file.doc'. 2) Type a dot and the end of 'Save as' field's content. I.e. 'This is a file.'. 3) Upload. The file's name will be 'This is a filedoc' and the file's type will be unknown (icon with a questyion symbol).
    • Affected Branches:
      MOODLE_22_STABLE

      Description

      Type '.' (dot) at the end of 'Save as' field uploading files. Then the name of 'file.ext' file with 'saveas.' save-as-field will be 'saveasext' and type of the file will be UNKNOWN.

      Ok if we type dot in a filename we have to set an extension. And if nothing comes after it extension must be empty. But:
      1) What does mean 'Save as' field? Name of FILE or NAME of file? It's difficult for my project's student & teachers...
      2) If it's a file name why 'ext' (WITHOUT DOT) is added to 'saveas' text?

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: