Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 302 Rev 320
Línea 294... Línea 294...
294
            } 
294
            } 
295
        } 
295
        } 
296
        return $this->s3Files->getPresignedUrl($remoto);
296
        return $this->s3Files->getPresignedUrl($remoto);
297
    }
297
    }
Línea -... Línea 298...
-
 
298
    
-
 
299
    /**
-
 
300
     *
-
 
301
     * @param string $path
-
 
302
     * @param string $code
-
 
303
     * @param string $filename
-
 
304
     * @return string
-
 
305
     */
-
 
306
    public function delete($path, $code, $filename)
-
 
307
    {
-
 
308
        $remoto = $path . '/' . $code. '/' .  $filename;
-
 
309
        try {
-
 
310
            $this->s3Files->deleteObject($remoto);
-
 
311
            return true;
-
 
312
        } catch (\Exception $exception) {
-
 
313
            //echo "No se pudo borrar el archivo : $remoto (" . $exception->getMessage() . ")";
-
 
314
            return false;
-
 
315
        }
-
 
316
        
-
 
317
    }
Línea 298... Línea 318...
298
    
318
    
299
  
319
  
300
    
320