You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 27, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,3 +55,12 @@ GZip's `zlib.deflate` and `zlib.inflate` compression filters are used.
55
55
56
56
[Sodium](https://www.php.net/manual/en/book.sodium.php) extension provides the backend for the
57
57
encrypted stream with [`XChaCha20-Poly1305`](https://www.php.net/manual/en/function.sodium-crypto-secretstream-xchacha20poly1305-init-push.php) algorithm.
58
+
59
+
## MIME types detection caveat
60
+
61
+
Some Flysystem adapters like the Local one try to guess the file mime type by
62
+
its nature (content or extension): in such cases it will fail due to the custom
63
+
extention and the encrypted content.
64
+
Other adapters like the Aws S3 one allow you to specify it manually (for ex.
65
+
with the `ContentType` key in the Config): it is a good idea to always manually
66
+
inject it, if you like the `Filesystem::mimeType($path)` call to be reliable.
0 commit comments