public
|
put(resource|string $data): string|null
Replaces the contents of the file.
Replaces the contents of the file.
The data argument is a readable stream resource.
After a successful put operation, you may choose to return an ETag. The
etag must always be surrounded by double-quotes. These quotes must
appear in the actual string you're returning.
Clients may use the ETag from a PUT request to later on make sure that
when they update the file, the contents haven't changed in the mean
time.
If you don't plan to store the file byte-by-byte, and you return a
different object on a subsequent GET you are strongly recommended to not
return an ETag, and just return null.
|
#
|
public
|
getContentType(): string|null
Returns the mime-type for a file.
Returns the mime-type for a file.
If null is returned, we'll assume application/octet-stream
|
#
|