Replies: 1 comment 5 replies
-
U mean you have a custom s3 driver that can compute the signedUrl synchronously? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here is a part of my code
I use AWS S3 to store my files and before using Adonis Drive I had my own implementation.
In my implementation I used this part inside a @computed property, in contrast, with Adonis Drive I can't because it's an asynchronous method.
I know that DriverContract needs to be abstract, but instead of return a
Promise<String>
, could to returnPromise<String> | String
and delegates to whoever is implementing it decides if their drive allows synchronous url generation ou not.Beta Was this translation helpful? Give feedback.
All reactions