Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-54867

Core changes in webservice/upload.php are not documented in webservice/update.txt

XMLWordPrintable

    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • MOODLE_31_STABLE
    • MDL-54867-master
    • Hide
      Setup
      1. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      2. Create a Token for an authenticated user:
        • Site administration ► Plugins ► Web services ► Manage tokens
      For Moodle 3.1:
      1. Use curl to upload a file to the site

        curl -i -F filedata=@[PATH/TO/YOUR/FILE] "http://[URL_TO_MOODLE_31]/webservice/upload.php?token=[YOUR_WS_TOKEN]&filearea=draft" | python -m "json.tool"
        

      2. Check that you receive a response a json containing all the draft file information (component, context, filearea, filename....
      For Moodle 3.2 (master):
      1. Use curl to upload a file to the site

        curl -i -F filedata=@[PATH/TO/YOUR/FILE] "http://[URL_TO_MOODLE_MASTER]/webservice/upload.php?token=[YOUR_WS_TOKEN]" | python -m "json.tool"
        

      2. Check that you receive a response a json containing all the draft file information (component, context, filearea, filename....
      Show
      Setup As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for an authenticated user: Site administration ► Plugins ► Web services ► Manage tokens For Moodle 3.1: Use curl to upload a file to the site curl -i -F filedata=@[PATH/TO/YOUR/FILE] "http://[URL_TO_MOODLE_31]/webservice/upload.php?token=[YOUR_WS_TOKEN]&filearea=draft" | python -m "json.tool" Check that you receive a response a json containing all the draft file information (component, context, filearea, filename.... For Moodle 3.2 (master): Use curl to upload a file to the site curl -i -F filedata=@[PATH/TO/YOUR/FILE] "http://[URL_TO_MOODLE_MASTER]/webservice/upload.php?token=[YOUR_WS_TOKEN]" | python -m "json.tool" Check that you receive a response a json containing all the draft file information (component, context, filearea, filename....

      Some core important changes were not documented (not allow to upload directly to private files), this make a feature of the mobile app to stop working (uploading files)

            jleyva Juan Leyva
            jleyva Juan Leyva
            Jun Pataleta Jun Pataleta
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            David Monllaó David Monllaó
            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.