Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 6086 | Rev 7236 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6086 Rev 7115
Línea 250... Línea 250...
250
 
250
 
Línea 251... Línea 251...
251
                    try {
251
                    try {
252
                       
252
                       
253
                        $fileBase64Content = base64_decode($fileBase64Content);
253
                        $fileBase64Content = base64_decode($fileBase64Content);
254
                        $target_path = $this->config['leaderslinked.fullpath.microlearning_topic'] . $topic->uuid;
254
                        $target_path = $this->config['leaderslinked.fullpath.microlearning_topic'] . $topic->uuid;
255
                        $topic_filename      = 'topic-' .uniqid() . '.png';
255
                        $topic_filename      = 'topic-' .uniqid() . '.jpg';
256
                        $topic_tmp_filename = 'data' . DIRECTORY_SEPARATOR . 'tmp';
256
                        $topic_tmp_filename = 'data' . DIRECTORY_SEPARATOR . 'tmp';
257
                        if(!file_exists($topic_tmp_filename)) {
257
                        if(!file_exists($topic_tmp_filename)) {
258
                            mkdir($topic_tmp_filename, 0755, true);
258
                            mkdir($topic_tmp_filename, 0755, true);
Línea 459... Línea 459...
459
                    $fileBase64Content = $this->params()->fromPost('file');
459
                    $fileBase64Content = $this->params()->fromPost('file');
460
                    try {
460
                    try {
Línea 461... Línea 461...
461
                        
461
                        
462
                        $fileBase64Content = base64_decode($fileBase64Content);
462
                        $fileBase64Content = base64_decode($fileBase64Content);
463
                        $target_path = $this->config['leaderslinked.fullpath.microlearning_topic'] . $topic->uuid;
463
                        $target_path = $this->config['leaderslinked.fullpath.microlearning_topic'] . $topic->uuid;
464
                        $topic_filename      = 'topic-' .uniqid() . '.png';
464
                        $topic_filename      = 'topic-' .uniqid() . '.jpg';
465
                        $topic_tmp_filename = 'data' . DIRECTORY_SEPARATOR . 'tmp';
465
                        $topic_tmp_filename = 'data' . DIRECTORY_SEPARATOR . 'tmp';
466
                        if(!file_exists($topic_tmp_filename)) {
466
                        if(!file_exists($topic_tmp_filename)) {
467
                            mkdir($topic_tmp_filename, 0755, true);
467
                            mkdir($topic_tmp_filename, 0755, true);
468
                        }
468
                        }