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

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

    XMLWordPrintable

    Details

    • Testing Instructions:
      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....
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-54867-master

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jleyva Juan Leyva
              Reporter:
              jleyva Juan Leyva
              Peer reviewer:
              Jun Pataleta
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              David Monllaó
              Participants:
              Component watchers:
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jul/16