diff --git a/lib/filestorage/common.php b/lib/filestorage/common.php
index 28c5e70041da2b28d9f55137058d769e49e57f4e..2e7ad95712905ea8aa9d086e98310183a41d27d4 100644
--- a/lib/filestorage/common.php
+++ b/lib/filestorage/common.php
@@ -107,7 +107,7 @@ abstract class OC_Filestorage_Common extends OC_Filestorage {
 // 	abstract public function free_space($path);
 // 	abstract public function search($query);
 	public function getLocalFile($path){
-		return $this->getLocalFile();
+		return $this->toTmpFile();
 	}
 	private function toTmpFile($path){//no longer in the storage api, still usefull here
 		$source=$this->fopen($path,'r');