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

Use mime type of the requested file to set file extension

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.3.0
    • BMA
    • Hide

      Login into a site with files that have different mime type than request url. For example a course with custom activity icon file that should be downloaded from www.mysite.com/image.php?foo=bar but his Content-type is `image/svg+xml`. 

      The image should be downloaded successfully.

      This issue needs to be tested both in Android and iOS. Compare 4.3 with 4.4 you should see custom activity icon (in 4.3 you saw the generic puzzle icons).

      Show
      Login into a site with files that have different mime type than request url. For example a course with custom activity icon file that should be downloaded from www.mysite.com/image.php?foo=bar but his Content-type is `image/svg+xml`.  The image should be downloaded successfully. This issue needs to be tested both in Android and iOS. Compare 4.3 with 4.4 you should see custom activity icon (in 4.3 you saw the generic puzzle icons).
    • MOODLE_403_STABLE
    • Moodle Apps - 2023 Sprint i4.2, Moodle Apps - 2024 i1, Moodle Apps - 2024 i1.1

      When we try to cache a file without the right extension, we are performing a HEAD request to obtain the "Content-type" header, but when this request receive status code 200 with an empty body, the plugin "cordova-plugin-advanced-http" cannot parse the gzip encoded request. (Plugin issue)

      So we have 2 ways to proceed here, avoid this HEAD request by obtaining the response headers when we download the file with the plugin "cordova-plugin-file-transfer" or fix the gzip encoding issue.

            alfonso.salces@moodle.com Alfonso Salces
            alfonso.salces@moodle.com Alfonso Salces
            Dani Palou Dani Palou
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

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