]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 21 Jun 2010 08:19:06 +0000 (08:19 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 21 Jun 2010 08:19:06 +0000 (08:19 +0000)
inc/ws/Controlleur/class.ws.flash.php
swf/_src/wsComposer.fla

index af82a84c3511340466a94d615ccd805f46946f1d..2d04cf3ceb72db4d4726c511dfacd19a293b444d 100644 (file)
@@ -52,6 +52,24 @@ class wsFlash extends cubeFlashGateway {
                }\r
        }\r
 \r
+       public function uploadLinkContent()\r
+       {\r
+               foreach($_FILES as $varname => $infos) {\r
+                       if ($infos['error']) {\r
+                               continue;\r
+                       }\r
+                       $fname = cubeFiles::tidyName($infos['name']);\r
+                       $dir = '/books/working/' . $this->args['book_id'] . '/' ;\r
+                       if (!file_exists(ROOT.$dir)) {\r
+                               mkdir(ROOT.$dir, 0777, true);\r
+                       }\r
+                       $dest = $dir . $fname;\r
+                       move_uploaded_file($infos['tmp_name'], ROOT . $dest);\r
+                       $this->xml->addChild('file', $fname);\r
+                       return;\r
+               }\r
+       }\r
+\r
        public function testDocuments()\r
        {\r
                $toload = $this->xml->addChild('toLoad');\r
index 7316ed77d48b2f024ec79d0c221fa74edd1f2f52..9bda02b54b4c14031fa7a4cf039ec7b706fb1a58 100644 (file)
Binary files a/swf/_src/wsComposer.fla and b/swf/_src/wsComposer.fla differ