Skip to content

Commit

Permalink
Merge branch 'MDL-60424-32' of git://github.com/jleyva/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_32_STABLE
  • Loading branch information
David Monllao committed Nov 6, 2017
2 parents da0bb6a + 311076f commit 3c665ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webservice/upload.php
Expand Up @@ -43,6 +43,10 @@


require_once(__DIR__ . '/../config.php'); require_once(__DIR__ . '/../config.php');
require_once($CFG->dirroot . '/webservice/lib.php'); require_once($CFG->dirroot . '/webservice/lib.php');

// Allow CORS requests.
header('Access-Control-Allow-Origin: *');

$filepath = optional_param('filepath', '/', PARAM_PATH); $filepath = optional_param('filepath', '/', PARAM_PATH);
$itemid = optional_param('itemid', 0, PARAM_INT); $itemid = optional_param('itemid', 0, PARAM_INT);


Expand Down

0 comments on commit 3c665ae

Please sign in to comment.