From: vincent@cubedesigners.com Date: Mon, 21 Jun 2010 08:19:06 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=21c8a881fe825860761cca83b836b814a1ce6c2a;p=cubeextranet.git --- diff --git a/inc/ws/Controlleur/class.ws.flash.php b/inc/ws/Controlleur/class.ws.flash.php index af82a84c3..2d04cf3ce 100644 --- a/inc/ws/Controlleur/class.ws.flash.php +++ b/inc/ws/Controlleur/class.ws.flash.php @@ -52,6 +52,24 @@ class wsFlash extends cubeFlashGateway { } } + public function uploadLinkContent() + { + foreach($_FILES as $varname => $infos) { + if ($infos['error']) { + continue; + } + $fname = cubeFiles::tidyName($infos['name']); + $dir = '/books/working/' . $this->args['book_id'] . '/' ; + if (!file_exists(ROOT.$dir)) { + mkdir(ROOT.$dir, 0777, true); + } + $dest = $dir . $fname; + move_uploaded_file($infos['tmp_name'], ROOT . $dest); + $this->xml->addChild('file', $fname); + return; + } + } + public function testDocuments() { $toload = $this->xml->addChild('toLoad'); diff --git a/swf/_src/wsComposer.fla b/swf/_src/wsComposer.fla index 7316ed77d..9bda02b54 100644 Binary files a/swf/_src/wsComposer.fla and b/swf/_src/wsComposer.fla differ