Replies: 1 comment 4 replies
-
That method was added recently and is only available in |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So i want to read in an image from a file upload (in a form/multipart form). The image is not allowed to exceed 1MB. The problem I am having is that to write it to the DB I need the TempFile from Rocket to become a Vec type to write it to the BLOB field in my DB. When I check the docs here: https://api.rocket.rs/master/rocket/fs/enum.TempFile.html#method.open
It seems to have the open method which would allow me to do this, but when I try from my code:
I get:
So how should I go about solving this particular problem or what am I doing wrong in my implementation?
My Cargo.toml:
Beta Was this translation helpful? Give feedback.
All reactions