mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
Adding a file to a card in the grain failed with HTTP 400 "Can't continue upload, session expired [408]" and the file silently disappeared. The Meteor-Files HTTP upload protocol signals the first chunk with an x-start header and tracks the session with x-mtok / x-chunkid / x-fileid / x-eof, but Sandstorm's request-header whitelist (web-session.capnp) does not include those, so the sandstorm-http-bridge strips them: the server never sees x-start, treats every request as a chunk continuation, cannot find the per-fileId session and returns 408. Use transport: 'ddp' on Sandstorm (detected via Meteor.settings.public.sandstorm) so uploads go over DDP method calls instead of custom HTTP headers; HTTP transport is kept everywhere else (it avoids the Safari DDP-reconnect stall). Thanks to xet7.