trait PreparesStorableFiles

Methods

array
prepareStorableFile(StorableFile $file)

Prepare file data for upload.

array
resolveProviderOptionsAndHeaders(StorableFile $file, Lab|string $provider)

Resolve the upload body options and HTTP headers for the given file.

Details

at line 19
protected array prepareStorableFile(StorableFile $file)

Prepare file data for upload.

Parameters

StorableFile $file

Return Value

array

at line 33
protected array resolveProviderOptionsAndHeaders(StorableFile $file, Lab|string $provider)

Resolve the upload body options and HTTP headers for the given file.

Parameters

StorableFile $file
Lab|string $provider

Return Value

array