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
I would like to use this in an application where file access is restricted, and to that end there is an authorization layer that then uses sendFile to pass the file to the user.
So basically, given a file (or a stream?) and options, convert, cache, and return a file.
Is that possible to do with the plugins system?
The text was updated successfully, but these errors were encountered:
Not entirely clear what you're trying to do, but yes it should be possible. Feel free to create your own storage plugin. If it's something you feel may be useful to a wide audience, submit as a PR and it may be bundled in.
HTTP (Read-only) - Read-only storage plugins are useful for fetching original assets, but can't be used for caching (unless extended with basic auth or some other form of auth)
Once you create your plugin, just set storage = { driverPath: "./my-new-storage-plugin" }.
I would like to use this in an application where file access is restricted, and to that end there is an authorization layer that then uses sendFile to pass the file to the user.
So basically, given a file (or a stream?) and options, convert, cache, and return a file.
Is that possible to do with the plugins system?
The text was updated successfully, but these errors were encountered: