11 Replies
You want to show an image and body text?
You can’t serve a file with body text as far as I know. It would have to be html for that
ok
I want to send an image and its name to my server. How can I do this with hono?
i will save the name on my db and it path to the db
You would need to send it in a multipart form
That way you can send an image plus form data
exactly, I agree with you. You need to define the body request as a multipart or form to attach any file, then get form data from the request
eg: postman
curl --location --request GET 'http://localhost:3000/iamge/' \
--form 'image=@"/C:/Users/5db80f85d8883aa1e13d1d8dfd346401.jpg"'
Thanks for adding more to it, I’m only on my phone
the topic has been resolved. @Niamarou#klm09 i helped. let others know
Thanks
😂