Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-778 META: Migrate to Ionic
  3. MOBILE-989

getMoodleFilePath: using .toInternalURL on a promise (error)

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0
    • 2.0
    • File system
    • Hide
      1. Execute the application in a real device.
      2. Check that the images affected by mm-format-text (like the user avatars in sites list, or images in course description) are correctly downloaded and replaced. Check that in the log there's no message saying "File not downloaded, but cordova is not available."
      Show
      Execute the application in a real device. Check that the images affected by mm-format-text (like the user avatars in sites list, or images in course description) are correctly downloaded and replaced. Check that in the log there's no message saying "File not downloaded, but cordova is not available."
    • Easy
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      In $mmSitesManager.getMoodleFilePath, when a file needs to be downloaded we have the following code:

      return $mmWS.downloadFile(downloadURL, path.file).toInternalURL();
      

      $mmWS.downloadFile always return a promise, so an exception is thrown.

            dpalou Dani Palou
            dpalou Dani Palou
            Frédéric Massart Frédéric Massart
            Juan Leyva Juan Leyva
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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