diff --git a/repository/upload/repository.class.php b/repository/upload/repository.class.php
index <HASH>..<HASH> 100755
--- a/repository/upload/repository.class.php
+++ b/repository/upload/repository.class.php
@@ -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);
         }
     }
"MDL-<I>, use a random path for uploaded file"