Streaming upload

An upload that BIM.works starts processing while the bytes are still arriving. Possible for IFC, IFCX and zip files; the other types are stored first and processed after.

The JavaScript SDK sends a file in chunks over the client's WebSocket connection (or over HTTP: always in Node.js, in the browser with the upload.useHttp setting), after first asking the server whether a file with the same hash already exists so an identical upload is never transferred twice. For streamable types the parser reads from the stream as it arrives, so a large IFC file is indexed by the time the upload completes; the file-types reference marks which types stream.