Hi All,
We have an igFileUpload that we use to upload CSV files using WCF REST for processing at the server, and to retrieve info back (i.e. validated data).
However, we are experiencing a problem where once we've used the file upload, it does not want to upload another file until we do a full refresh on the page.
We can select a file, but the igFileUpload just does nothing until we do a refresh, select the file again and then it goes through.
Any thoughts/ideas on what can be causing this?
Thanks,
Eduard Kruger.
Hello Eduard,
I would suggest examining the network activity in the developer tools after uploading a file. Are there any responses with errors ? It may also be helpful to handle theonErrorevent and check whether any errors are raised during the first upload. A small sample application would allow me to examine this matter further and in more detail.
Please do not hesitate to contact me with any updates regarding this matter.
Please do not hesitate to contact me if you are still experiencing any issues with this scenario.
Hi Petar,
Sorry for not getting back to you sooner, but I had other priorities.
I've figured out the problem is due to the object I use from the igFileUpload control to get the data returned from the server. I was always using the igGrid object's filesInfo array object for index 0, I did not realize all subsequent uploads increased the array size and thus each new upload had a new element. I've changed my code to always use the upper bound object in the array, and the page works 100% now.
Thanks for the feedback, regardless. You may close the issue.
Regards,