Thanks everyone but I found an easier and more stable way.
In the file OPENGOOROOT/init.php, you can set the path where you want your uploaded files to be stored:
define('FILES_DIR', ROOT . '/upload'); // place where we will upload project files
You simply have to change the second parameter to the path where you want to store the files and voilĂ !