This is something similar to the issue that you are currently facing:
And from the discussions on the board, it seems like it is due to some library being used which is interrupting with the underlying upload library (the same ng-file-upload in the above post) that Canvas is using.
As for the upload process, Canvas actually does it in 2 requests. The first one is to set the parameters, as what you have posted above. And this first request is correct that it does not return anything. Once this setting has been done and it is successful, it will trigger the actual upload of the file on a second request.
So a number of things we can check out here:
- Can you help verify whether you are able to upload via the Canvas
- Do you have other 3rd party JS libraries/shims? If so, try to remove 3rd party libraries to isolate which one is causing the upload issue - and once you have found that library, try to move it around the declaration to see where it can potentially help resolve this.
Let us know how it goes.