I struggle with large file upload to Autodesk Forge.
This is what im doing: I properly authorise access using 2legged auth, create bucket, and i'm able to upload revit file and in return i receive URN (object ID). This is all spot on.
The upload works fine for files with size say up to ~100MB. I also implemented resume upload regards to instructions taken from https://github.com/Autodesk-Forge/forge-php-client
This resume upload also works great for files relatively small - say 50-100MB. I tested with chunks 2 and 5MB.
but i have a real problem with bigger files. Say 200MB, 500MB, or larger. I noticed that if i upload 200MB file using non-resume option then it goes properly and i receive json with data. With larger files - its random. Once they pass through, once error. The largest file i managed to upload usin non-resume method was ~500MB.
However, if i use resume upload for the same 200MB file, then i'm receiving 502 error. I also noticed that this happen randomly. I managed to upload 200 MB files twice. but in most cases (i wld say 9 of 10 cases) it gives nasty 502 error. And im not sure what to do with this.
I'm sending my files from server in google cloud. we have also load balancer.
Can you help what can cause this 502 error, or give some info if there are any limitation etc? I'm sure my code is ok because it works for smaller files <= 100MB. I also tested curl commands directyly from CLI rather than from my source code but no any difference. So i assume its someting related to server overload, load balancer or such limitations at forge end.
alex