Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2177

Enforce assignment submission file type restrictions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.3.2
    • Component/s: Assignment add-on
    • Labels:
    • Testing Instructions:
      Hide
      1. In Moodle 3.3, create several assignments accepting "File submissions". Please set different "Accepted file types" for each of them. The file types can be a mimetype (video/mp4), an extension (.mp4) or a group (video). Please make sure that you accept at least: 1 video, 1 image, 1 audio, 1 document/pdf.
        • There are some already created in Proto 3.3 > Moodle Features Demo > Assignments.
      2. In the app, login in the site and check that you are not allowed to send a file with a different extension than the ones allowed.
      3. Check that the app shows a text with the accepted types in the "Edit submission" view, similar to the one shown in Moodle when you edit a submission. Please notice that the list of extensions can be a bit different since the list of extensions in the app is more complete.
      4. Also, check that:
        • You cannot see the "Camera" option if an assign doesn't accept png or jpeg formats.
        • You cannot see the "Album" option if an assign doesn't accept images or videos. This option is only displayed in real devices.
        • If an assign accepts only png but not jpeg (or viceversa), the Camera should save the picture with the right format. The Album will always show all images (cannot filter by mimetype), but selecting the wrong format should display an error.
        • You cannot see the "Audio" option if an assign doesn't accept audio. You shouldn't see it in iOS if the assign doesn't accept .wav files.
        • You cannot see the "Video" option if an assign doesn't accept video. You shouldn't see it in iOS if the assign doesn't accept .mov files.
        • The "Shared files" option (iOS only) only displays the files with the right format. E.g. share a PDF and a DOC with the app, open an assign that only accepts one of them and check that the "Shared files" only displays the right one.
        • The "File" option in Android might display all the files (it doesn't support the "accept" attribute), but selecting a wrong format should display an error. In desktop apps you should only be able to pick the files with the right format.
      5. Now create an assign in Moodle 3.2 accepting file submissions (you cannot configure file types in there).
      6. In the app, check that the assign in 3.2 accepts all kind of files.
      Show
      In Moodle 3.3, create several assignments accepting "File submissions". Please set different "Accepted file types" for each of them. The file types can be a mimetype (video/mp4), an extension (.mp4) or a group (video). Please make sure that you accept at least: 1 video, 1 image, 1 audio, 1 document/pdf. There are some already created in Proto 3.3 > Moodle Features Demo > Assignments . In the app, login in the site and check that you are not allowed to send a file with a different extension than the ones allowed. Check that the app shows a text with the accepted types in the "Edit submission" view, similar to the one shown in Moodle when you edit a submission. Please notice that the list of extensions can be a bit different since the list of extensions in the app is more complete. Also, check that: You cannot see the "Camera" option if an assign doesn't accept png or jpeg formats. You cannot see the "Album" option if an assign doesn't accept images or videos. This option is only displayed in real devices. If an assign accepts only png but not jpeg (or viceversa), the Camera should save the picture with the right format. The Album will always show all images (cannot filter by mimetype), but selecting the wrong format should display an error. You cannot see the "Audio" option if an assign doesn't accept audio. You shouldn't see it in iOS if the assign doesn't accept .wav files. You cannot see the "Video" option if an assign doesn't accept video. You shouldn't see it in iOS if the assign doesn't accept .mov files. The "Shared files" option (iOS only) only displays the files with the right format. E.g. share a PDF and a DOC with the app, open an assign that only accepts one of them and check that the "Shared files" only displays the right one. The "File" option in Android might display all the files (it doesn't support the "accept" attribute), but selecting a wrong format should display an error. In desktop apps you should only be able to pick the files with the right format. Now create an assign in Moodle 3.2 accepting file submissions (you cannot configure file types in there). In the app, check that the assign in 3.2 accepts all kind of files.
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Sprint:
      Moodle Mobile 3.3.2

      Description

      Currently the Moodle Mobile app will accept files of any type submitted to an assignment instance with the new file type restrictions enabled.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            tonybutler Tony Butler
            Peer reviewer:
            Pau Ferrer
            Integrator:
            Juan Leyva
            Tester:
            Berta Maroto
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              29/Sep/17