aboutsummaryrefslogtreecommitdiffstats
path: root/lib/filesystem.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r--lib/filesystem.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php
index 66da4fc3145..54b2ad9ce77 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -339,6 +339,11 @@ class OC_FILESYSTEM{
return $storage->fromTmpFile($tmpFile,self::getInternalPath($path));
}
}
+ static public function fromUploadedFile($tmpFile,$path){
+ if(self::canWrite($path) and $storage=self::getStorage($path)){
+ return $storage->fromUploadedFile($tmpFile,self::getInternalPath($path));
+ }
+ }
static public function getMimeType($path){
if(self::canRead($path) and $storage=self::getStorage($path)){
return $storage->getMimeType(self::getInternalPath($path));