I am trying to upload an image to my server. I am using react hook forms and I have a basic input field with a “file” type. When I submit the form I can view my image by console.log(data.image[0]);
The output I get is below. What I don’t see is a file path or any sort of blob data. So I’m not sure how to handle it on the server with the given output. For example sending it to an s3 bucket from the server.
output:
{
name: “image_name.jpg”
lastModified: 1629072886052
lastModifiedDate: Sun Aug 15 2021 20:14:46 GMT-0400 (Eastern Daylight Time) {}
name: “230157507_10227278395090358_4299704553321000148_n.jpg”
size: 73820
type: “image/jpeg”
webkitRelativePath: “”
}
submitted by /u/Zealousideal_Water_6
[link] [comments]