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

Implement file type exclusion list for mobile

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.9.3
    • 3.9.2
    • Android, iOS
    • Hide

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

      When using files, do not choose images or videos that can be easily shown inline in the app, this issue does not solve that.

      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. When using files, do not choose images or videos that can be easily shown inline in the app, this issue does not solve that. 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
    • MOODLE_39_STABLE
    • MOODLE_39_STABLE
    • Moodle App 3.9.3

      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.

            tiennguyenphuc Tien Nguyen
            marxjohnson Mark Johnson
            Sam Marshall Sam Marshall
            Juan Leyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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