Spatie\MediaLibrary\Filesystem::getRemoteHeadersForFile PHP Method

getRemoteHeadersForFile() public method

* Get the headers to be used when copying the given file to a remote filesytem.
public getRemoteHeadersForFile ( string $file ) : array
$file string
return array
    public function getRemoteHeadersForFile(string $file) : array
    {
        $mimeTypeHeader = ['ContentType' => File::getMimeType($file)];
        $extraHeaders = $this->config->get('laravel-medialibrary.remote.extra_headers');
        return array_merge($mimeTypeHeader, $extraHeaders);
    }