diff --git a/vas/rest/class/vmlib/phpUtil.inc b/vas/rest/class/vmlib/phpUtil.inc index f5e5d11b883bed2269886f21553d1ea123750773..0518e96f17e7817781468cc21e2723ba1b385b90 100755 --- a/vas/rest/class/vmlib/phpUtil.inc +++ b/vas/rest/class/vmlib/phpUtil.inc @@ -151,6 +151,10 @@ function stripslashes_deep($aString) { } $sServerPath = str_replace($properties["vas_home"], $sPrefix , $sServerPath); + + // Suppression du slash de début de ligne (sinon création d'un répertoire vide sur S3). + if (strpos($sServerPath, '/') === 0) + $sServerPath = substr($sServerPath, 1); $aResult = $s3->putObject(array( 'Bucket' => $sBucket,