Skip to main content
Premium

Chunked uploads

Large files go straight to storage in chunks instead of travelling base64-encoded inside the create or update request.

Below a configurable threshold nothing changes — a small image is still embedded in the payload. Above it the browser uploads to S3 or a tus server, and the request carries only a reference the backend resolves on save.

Pages​

PageWhat it covers
InstallationAdding habarico_enterprise.uploads
ConfigurationThreshold, chunk size and storage settings
Provider selectionS3 multipart vs. tus
tus server setupRunning and securing a tus server
S3 temporary file cleanupRemoving abandoned uploads
Frontend contractWhat the browser sends and when

How it fits together​

  1. The backend adds options.upload to the field schema — provider, threshold, chunk size.
  2. UploadInput reads it and picks the path per file.
  3. A chunked upload finishes with an upload_key; the serializer turns it into a stored file when the record is saved.
caution

Client-side resize and crop only apply to the base64 path. A file large enough to be chunked is uploaded untouched — see the caution on UploadInput.

See also​