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

File upload with limited file types: improve the message if you upload the wrong type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.4.1, 4.2.1
    • Forms Library
    • MOODLE_34_STABLE, MOODLE_402_STABLE

      Both the admin and mform libraries give you the ability to constrain the types of file that will be accepted for upload.

      The form will validate this to ensure the user uploads the right type of file.

      However, the messages returned aren't as helpful as they could be, as they only tell you that the file you have uploaded is the wrong type, but don't tell you what the expected types are.

      The mform filemanager already displays this information below the filemanager, though the admin version doesn't, which should probably be harmonised. Repeating this information in the form feedback pop-up that displays the error would help to draw the users attention to what they can do to proceed.

        1. admin_setting_configstoredfile.png
          56 kB
          David Scotson
        2. form_filemanager_with_accepted_types.png
          75 kB
          David Scotson
        3. wrong_filetype_error_message.png
          39 kB
          David Scotson

            Unassigned Unassigned
            bawjaws David Scotson
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 minute
                1m

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