Let me perhaps go a step back, is there a reason you’re copying the file first, rather than just uploading it? Let me grab you some code from my last project, I did image uploads and I don’t think I did that.
So, my app submitted a whole form with a bunch of other data with the images, so I’m not sure how much my code will help you directly, but I will say we definitely do not copy the files over. I don’t know why you’d need to.
You will already have the path to the image, can’t you just use that and directly upload it? That’s what we did.
I have the same requirement. I also want to submit a bunch of data with the images. When I click an image from the camera, this works fine. The issue occurs when I try to upload through the gallery.
hi, can i take a look at your coding for upload picture to server? because i’m facing some bug. my image didn’t upload to server but there are no error message.
i think your error is related to a missing package of Angular, can you check please ? (i had to install it on my end and include in the package for some time utilities and classes).