src/Components/S3FileSystem.php
public function putBlobFromFile($container = '', $name = '', $localFileName = '', $type = '')
    {
        try {
            $this->checkConnection();

            $options = [
                'Bucket'     => $container,
                'Key'        => $name,
                'SourceFile' => $localFileName
            ];

            if (!empty($type)) {
                $options['ContentType'] = $type;
            }

            $this->blobConn->putObject($options);
        } catch (\Exception $ex) {
            throw new DfException('Failed to create blob "' . $name . '": ' . $ex->getMessage());
        }
    }
public function putBlobFromFile($container = '', $name = '', $localFileName = '', $type = '')
    {
        try {
            $this->checkConnection();

            $options = [
                'Bucket'     => $container,
                'Key'        => $name,
                'SourceFile' => $localFileName
            ];

            if (!empty($type)) {
                $options['ContentType'] = $type;
            }

            $this->blobConn->putObject($options);
        } catch (\Exception $ex) {
            throw new DfException('Failed to create blob "' . $name . '": ' . $ex->getMessage());
        }
    }
@param string $container
@param string $name
@param string $localFileName
@param string $type

@throws DfException