"MDL-13766, use a random path for uploaded file"
This commit is contained in:
@@ -13,7 +13,8 @@ class repository_upload extends repository {
|
||||
global $SESSION, $action, $CFG;
|
||||
parent::__construct($repositoryid, $context, $options);
|
||||
if($action=='upload'){
|
||||
$this->info = repository_store_to_filepool('repo_upload_file');
|
||||
$filepath = '/'.uniqid().'/';
|
||||
$this->info = repository_store_to_filepool('repo_upload_file', 'user_draft', $filepath);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user