I have a problem with my image upload function that I don´t seem to figure out by myself. I hope someone can help me. The choose and upload image function works, but it work too good. When I upload the first image, it work as it should. One image is uploaded to my server. But when I continue by choosing or taking a new photo, it uploads two copies of the same photo. The third image I upload becomes uploaded tree times, the next four times and so it grows in copies uploaded each time. Only if I restart the app, it starts from one copy upload again, but grows +1.
Here is my image upload code:
1 Answer
Could it be because you have 2 xhr.onload events?
Your Answer
Think you can help? Login to answer this question!