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

Implement file type exclusion list for mobile

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Waiting for integration review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: DEV backlog
    • Fix Version/s: None
    • Component/s: Android, iOS
    • Testing Instructions:
      Hide

      This function require implementation of https://tracker.moodle.org/browse/MDL-68797 to work.

      1. On the website, create a new course with these activities:
        File 1 with extension 1
        File 2 file with extension 2
        A forum - discussion with two attachments: file 3 with extension 1 and file 4 with extension 2
      2. On the website, go to /admin/settings.php?section=mobilefeatures and add extension 2 to "File type exclusion list"
      3. In the app, login in to the course
      4. Open file 1 page and click on "OPEN THE FILE" button
        => The file 1 should be opened
      5. Open file 2 page and tap on "OPEN THE FILE" button
        => a warning pop-up should appear: "This file may not work as expected on this device. Would you like to open it anyway?"
        5.1. Tap on cancel, => the file 2 should not be opened
        5.2. Tap on "OPEN THE FILE" button and tap "Open File" => the file 2 should be opened
      6. Go to forum discussion and open file 3 => the file should be opened
      7. Go to forum discussion and open file 4 => the file should not be opened. The pop-up should appear again.
        7.1. Tap on cancel, => the file 4 should not be opened
        7.2. Open file 4 again and tap "Open File" => the file 4 should be opened
      8. Back to course page, chose three dot button to open context menu and tick on "Show download option"
      9. Using download buttons (cloud icon) to download file 1 and 2
      10. Open file 1 using file icon next to download icon => file 1 should be opened
      11. Open file 2 using file icon next to download icon => the pop-up should be appear again.
        11.1. Tap on cancel, => the file 2 should not be opened
        11.2. Open file 2 again and tap "Open File" => the file 2 should be opened
      Show
      This function require implementation of https://tracker.moodle.org/browse/MDL-68797 to work. On the website, create a new course with these activities: File 1 with extension 1 File 2 file with extension 2 A forum - discussion with two attachments: file 3 with extension 1 and file 4 with extension 2 On the website, go to /admin/settings.php?section=mobilefeatures and add extension 2 to "File type exclusion list" In the app, login in to the course Open file 1 page and click on "OPEN THE FILE" button => The file 1 should be opened Open file 2 page and tap on "OPEN THE FILE" button => a warning pop-up should appear: "This file may not work as expected on this device. Would you like to open it anyway?" 5.1. Tap on cancel, => the file 2 should not be opened 5.2. Tap on "OPEN THE FILE" button and tap "Open File" => the file 2 should be opened Go to forum discussion and open file 3 => the file should be opened Go to forum discussion and open file 4 => the file should not be opened. The pop-up should appear again. 7.1. Tap on cancel, => the file 4 should not be opened 7.2. Open file 4 again and tap "Open File" => the file 4 should be opened Back to course page, chose three dot button to open context menu and tick on "Show download option" Using download buttons (cloud icon) to download file 1 and 2 Open file 1 using file icon next to download icon => file 1 should be opened Open file 2 using file icon next to download icon => the pop-up should be appear again. 11.1. Tap on cancel, => the file 2 should not be opened 11.2. Open file 2 again and tap "Open File" => the file 2 should be opened
    • Pull Master Branch:
      MOBILE-3432-integration
    • Sprint:
      Moodle App 3.9.3

      Description

      This was discussed on the Moodle mobile forum

      Some file types cannot be opened with any app available on iOS or Android devices. Examples of this include .mathcad and .spss.
      Other file types may have unexpected behaviour on mobile platforms. For example an Windows .exe executable cannot run on Android, but the game "Plague" will offer to open it.

      To avoid confusing sitations for users, we should allow site admins to define a list of file types that they don't want users to try and open in the app. These files will still be listed on the app's course screen, but attempting to download them on iOS or Android would display a warning to the user indicating that this file type is not intended for use on a mobile device. They can then either cancel the download, or ignore the warning and download anyway.

      The list of file types will be set in a config setting on the server, and sent to the app as a list of MIME types via the tool_mobile_get_config web service. Downloads for file types appearing on this list will show the warning. MDL-68797 covers creation of the new admin setting.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tiennguyenphuc Tien Nguyen
              Reporter:
              marxjohnson Mark Johnson
              Peer reviewer:
              Sam Marshall
              Participants:
              Component watchers:
              Juan Leyva, Juan Leyva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: