How can I make a uploaded file, with the filepicker in edit_form of block, become available for other users.
After uploading it is stored as a 'draft' file and available for own purpose, but how can I make it available for other users.
I used this code in the renderer.php:
$url = $CFG->wwwroot . "/draftfile.php/" . $file->contextid . '/user/draft/' . $itemid . "/" . $file->filename;