Files
Client Files are the most common kind of file in your Nextspace account. You can upload these yourself and tie them to Entity records as attachments. They are also used for markup media, bookmark thumbnails, and branding.
Uploading
Pass a path and the library handles the rest. Small files go up in a single request, and anything larger is split into parts automatically, so you do not need to know or check the threshold yourself.
Large uploads can take a while, so you can follow their progress. The callback receives a percentage and an uploaded flag, which is only true on the final call.
Downloading
Every Client File record carries its own absolute URL, with the file extension already applied. Use it directly rather than assembling one from the ID and your base url.