-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MultipartFile helper’s moveToDisk method does not add writeOptions #54
Comments
Can you please run your application using |
Here are the logs
|
Ohh yes. I see there is an error with the logic of using options. Can you please create a PR with the fix? |
Package version
3.2.0
Describe the bug
Hello,
Context:
I am using Adonis 6.14.0 with the drive plugin 3.2.0.
I am uploading a file and validating it with the included validator.
I have a drive disk that is an S3 bucket.
When I try to move the file using the MultipartFile helper while providing the drive key and adding metadata for AWS, it seems that the metadata is being ignored.
Possible cause:
I looked at the source code and it seems that when the
diskNameOrOptions
is provided, thewriteOptions
are ignored.(drive/providers/drive_provider.ts
Lines 123 to 135 in 9478eda
Am I right ?
Here is an example
But when I use the drive directly, it works. The metadata is passed to the AWS command and is visible in the bucket
Thank you in advance.
Reproduction repo
No response
The text was updated successfully, but these errors were encountered: