Skip to content

Can the client send a file? #2651

Closed Answered by mathew-horner
fractal-joe asked this question in Questions
Discussion options

You must be logged in to vote

The File struct doesn't actually have the file contents. If you want to get the contents of the file, you can use one of the std::io::Read (link) methods (i.e. read_to_end). Then you can send that data in your request.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SergioBenitez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants