We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to save pdf files in pdf named folder and images in the image named folder, Is there any way to do that?
The text was updated successfully, but these errors were encountered:
Unfortunately, there is no great way to do this with the model that is used in Mutler 1.x.
However, with the 2.x version this should be very easy! You can try it out and provide feedback in #399.
Closing this since it cannot really be solved in the library for 1.x...
Sorry, something went wrong.
Well, @LinusU I solved this using file.filedname if(file.fieldname === "image"){ cb(null, "./uploads/images"); } else if (file.fieldname === "pdf"){ cb(null, "./uploads/pdf"); }
Ah, I thought you wanted to detect the file type and then act. Yes, the solution you posted will work great for your use case 👍
No branches or pull requests
I want to save pdf files in pdf named folder and images in the image named folder, Is there any way to do that?
The text was updated successfully, but these errors were encountered: