We came across an issue where shape file cannot be uploaded for the first time if the user is logged in to the portal.
In console we can see an error "Cannot read property 'name' of undefined"
We are able to reproduce the issue with sample, when updated the code to login in to portal.
Attached is the sample code to reproduce the issue.
While analyzing the issue we found that if "callback.html" = 'textarea' parameter is not passed in the content then this issue is not reproducible.
So I would like to know the importance of this parameter and what will happen if we don't pass it.