-
Notifications
You must be signed in to change notification settings - Fork 47
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
AmazonS3FileInterceptor only uses one MulterExtendedOptions property, even if two were passed #237
Comments
let storageOptions: S3StorageOptions;
const extendedOptionProperty = Object.keys(this.localOptions)[0];
switch (extendedOptionProperty) { Could it be, that this part only takes the first property into account and then switches through it? |
Thanks for opening an issue @jonasschultheiss |
I'd like to have this feature, so I have a thumbnail and both have a unique name.
|
Sounds fair to me. Would you like to create a PR for this? |
sure, but make sure to review it, as I don't have that much experience with open source projects |
@jonasschultheiss |
@jonasschultheiss are you still working on a PR for this? |
No, the work and final phase at school are a bit stressful for me. I like to work on it at the beginning of the new year. |
Any, news on this?.
|
Hey, first of all, cool package. It's really easy to upload to a s3 with this.
One thing I noticed on my project was, that the second property of
MulterExtendedOptions
doesn't seem to make a difference in theAmazonS3FileInterceptor
. What I'd like to have random file names and thumbnails, but it appears to ignore the second option.Example 1 ->
thumbnail
first:1.1. Code
1.2 Console out
Example 2 ->
randomFileName
first2.1. Code
2.2 Console out
As you can see, the first example creates a thumbnail but doesn't upload the file with a random name, while the second example does the oposite.
If I made a mistake in my code, feel free to tell me.
The text was updated successfully, but these errors were encountered: