Proyectos de Subversion LeadersLinked - Services

Rev

Rev 283 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 283 Rev 290
Línea 119... Línea 119...
119
     * @param string $local
119
     * @param string $local
120
     * @return boolean
120
     * @return boolean
121
     */
121
     */
122
    public function putObject($remote, $local) 
122
    public function putObject($remote, $local) 
123
    {
123
    {
124
 
124
        
Línea 125... Línea 125...
125
        
125
        
126
        try {
126
        try {
127
            $this->s3->putObject([
127
            $this->s3->putObject([
128
                'Bucket'        => $this->bucket,
128
                'Bucket'        => $this->bucket,
129
                'Key'           => $remote,
129
                'Key'           => $remote,
130
                'SourceFile'    => $local
130
                'SourceFile'    => $local
131
            ]);
131
            ]);
132
            return true;
132
            return true;
-
 
133
        } catch (\Exception $exception) {
133
        } catch (\Exception $exception) {
134
            
Línea 134... Línea 135...
134
            echo "No se pudo subir el archivo : $local (" . $exception->getMessage() . ")";
135
           // echo "No se pudo subir el archivo : $local (" . $exception->getMessage() . ")";
135
 
136
 
136
            
137