Someone please clarify what I think is some sort of a bug.
My App loads binary data (images) and raw data to the backend.
The design: Load the binary data first i.e. (Images 1,2...5) on each Success get the FileUrl which is then loaded as part of the raw data.
I have 2 functions (1) uploadImages() where I call the Fileupload service of each image in the sequence and second Function uploadRawData() which has the raw data upload service.
The Issue: What I have realised after many trials is that, although I am calling image upload service first the system almost always never uploads all the images before calling the DataUpload services. There are some variations which I think are due to the size of the image. In general it goes like this: I press submit the system calls: upload image 1, Upload image2, Upload Raw Data (which is wrong) , Upload image 3..4..and 5.
I expect this: Upload Images 1,2,3,4,5. Upload Raw Data. Remember uploadImages() function is called first then uploadRawData() Functions is last. And although I have my code in two functions I had the code all in one function, didn't work so I decided to completely separate the code and still...doesn't work.
I am strongly convinced this is a bug unless someone can prove me wrong. I appreciate your urgency on this issues.