-
-
Notifications
You must be signed in to change notification settings - Fork 683
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
How to get original file with formidable? #616
Comments
Thank you for raising this issue! We will try and get back to you as soon as possible. Please make sure you format it properly, followed our code of conduct and have given us as much context as possible. |
Hey there again :) There's no such thing as "original file" currently. The file is directly streamed/written to the file system in OS's temporary directory or the defined upload dir. From there you can do your thing. In the future we will allow the users to directly access the buffer/stream of an incoming file, so Formidable will not even touch the file system and the users will be able to decide what to do with it. The #360 kind of is about that. So, in your case, you can get the file path from the |
files.imgFile.path (or files.imgFile[0].path) contains the filename that was just saved. If you don't want intermediate files, use |
Support plan
Enterprise):
Context
What problem are you trying to solve?
Hello again. I have to resize(with sharp) image from formidable, how to get this? Should I save file before resize it?
All I want is here. parse
req
and resize immediately.The text was updated successfully, but these errors were encountered: