dji-sdk / DJI-Cloud-API-Demo

MIT License
147 stars 105 forks source link

1.9.0 - firmware upload process tries to upload the firmware in one big chunk #55

Closed neilyoung closed 8 months ago

neilyoung commented 9 months ago

...which makes NGINX blow up.

2024/03/01 17:25:54 [error] 641350#641350: *445 client intended to send too large body: 563860679 bytes, client: xx.xx.xx.xx, server: server.domain.com, request: "POST /manage/api/v1/workspaces/e3dea0f5-37f2-4d79-ae58-490af3228069/firmwares/file/upload HTTP/1.1", host: "server.domain.com:443"

Why not chunked POST?

The firmware upload from the dashboard fails with a CORS problem. My server uses another subdomain as the dashboard.

So the entire firmware upload doesn't work for me.

neilyoung commented 8 months ago

Fixed with setting NGINX upload limit to 1GB