Skip to content

Cloud storage

Cloud storage covers Dropbox, OneDrive and the other connected file sources. Open Open from cloud storage in the viewer to choose one. On a hosted deployment with vendor sign-in enabled, select Sign in beside Autodesk, Dropbox or OneDrive. Complete the vendor's account selection and consent screen, then return to IFClite to browse and load files. End users do not enter access tokens, client IDs or app secrets.

Click a connected source's name to expand its browser. Star a provider to pin it above other sources; the first connected pinned provider opens automatically when the panel returns. Provider pins stay in this browser. Favorite folders and files remain scoped to the signed-in account and appear above the sources, with favorite folders also available at the top of their file area.

A Load batch appears in Activity while source files download. Cancel stops that batch's remaining downloads; files already sent for loading are kept. The row reports Partial when cancellation or a download failure follows successful dispatches, Failed when every download fails, and Cancelled when cancelled before any dispatch. Completed means all files were sent to the model loader; each model's loading row reports its later parse and geometry outcome.

Back from a favorite shortcut returns to the source overview after leaving its file area. Expand the source's name to browse or search other projects. When entering through the project list, Back returns to that list; personal drives skip the redundant single-account selection.

Use Find a model across folders at a provider's root to search files before opening a folder. Search uses the vendor search API when available and otherwise searches listed file names without downloading models. It follows accessible project and file pages; Continue searching fetches further results rather than silently truncating them. Sources that can only discover projects search their known projects; use the separate project search or URL field to discover others. Folder search still searches the selected project. File details show provider metadata before import; IFClite does not fabricate model thumbnails or fetch geometry in the background.

Dropbox reads the signed-in account's files. OneDrive reads the signed-in user's own drive, for either a personal Microsoft account or a work/school account whose administrator permits consent. Hosted OneDrive does not browse other SharePoint sites or document libraries. Autodesk lists only projects and exchanges that the signed-in account can access; a successful sign-in with an empty list means there are no accessible projects in that source. Tenant administrators may need to approve an application before users can access their organisation's data.

IFClite requests read access. Cloud credentials remain on the backend, in a session identified by a secure HttpOnly cookie. Files download through the gateway; vendor access tokens and signed download URLs are not sent to the viewer. Sign out ends the IFClite cloud session. It does not sign the user out of the vendor's other applications.

Hosted imports pass model bytes through IFClite services. Native Forma and Data Exchange resources are converted on the server before loading in the browser; Data Exchange uses the configured Windows worker. See Privacy for the data flow and temporary artifact handling.

If the browser blocks the sign-in popup, IFClite continues sign-in in the current tab and returns to the previous viewer route. This reloads the viewer; save local work before signing in with a popup blocker enabled. Only an expiring transaction state and return location are kept in session storage, and they are removed when the viewer resumes. Closing a popup may leave the attempt waiting because browser isolation prevents reliable detection; use Cancel sign-in or wait for the timeout before trying again.

Deployment administrators configure the vendor applications on the cloud gateway and enable VITE_CLOUD_HOSTED=true for the viewer build. The viewer must proxy /api/cloud/dropbox/* and /api/cloud/msgraph/* to the configured gateway on the same public origin. Register the exact /api/cloud/{vendor}/callback URLs with the vendors and serve the matching /oauth/{vendor}/callback static pages. Follow the gateway deployment instructions. Autodesk uses its separate VITE_AUTODESK_HOSTED=true gateway configuration.

The cloud session ends when the gateway restarts. Reconnect if IFClite reports that it expired. Autodesk refreshes its gateway session before Sign in, Sign out and other mutations, so idle expiry or a restart does not require reloading the viewer to reconnect or sign out. Unconfigured sources explain that an administrator needs to enable the application. Failed sign-out keeps the account visible so users can retry.

Self-hosted deployments without VITE_CLOUD_HOSTED=true retain the direct SDK sign-in setup described in the Dropbox package and Microsoft Graph package. Dalux currently uses the vendor's API credentials; hosted OAuth for Dropbox and Microsoft does not change that source.

Two more sources are built in:

  • BIMcollab Documents opens models from the BIMcollab space you connected for BCF, with no second sign-in. The saved BCF connection must point at a BIMcollab server and its access token must carry the space ID; any other BCF server or an opaque token leaves the source disconnected. Requests go through the same-origin /api/bimcollab relay. Set VITE_SOURCE_BIMCOLLAB=false to hide it on a deployment without that relay. See the BIMcollab package.
  • buildagil appears only when the build sets VITE_BUILDAGIL_CLIENT_ID. Sign-in also needs the /api/buildagil relay to hold the matching BUILDAGIL_CLIENT_ID. See the buildagil package for the relay variables.

Local OCI registry demo

For a local sign-in, pull, edit and publish walkthrough, see the local registry guide.

Saving back to a source

For a loaded IFC file from a writable source, use Save to source on its model row, or open Sources → Save loaded IFC models. Sources without write-back support show no save action. Choose a new revision, a new filename in the same folder, or browse to another folder. Review the destination and explicitly confirm before any upload begins.

The viewer sends the current edited model and binds new-version uploads to the revision that model loaded. A remote revision change or an existing destination name produces a conflict; choose another name or reload and reconcile your edits. The provider checks this just before it sends the bytes, and the check is not atomic with the write: a revision someone adds in the source while the upload runs is not detected. Uploads are never retried automatically. Your mutation history and edits made while an upload runs are kept. After a successful save with a verified revision, the model follows the returned file and the dialog displays its revision history. If the model was unloaded or replaced during upload, the remote result is shown without attaching its provenance to the replacement. When the provider cannot verify the saved revision, reload the saved file from the source before uploading again.

The provider contract (@ifc-lite/plugin-api) lets a provider declare capabilities.writeBack with the modes it supports and implement uploadFile:

  • new-version adds a revision to an existing file.
  • new-file creates a file with a new name, typically in the original's folder.
  • new-location creates a file in a different folder.

A committed upload returns ok: true even if its revision could not be verified. In that case revision is null, so the host can show the completed save and avoid attaching an unverified revision to the model.

uploadFile never overwrites. When the file has changed since it was loaded (stale-base), or the name is taken (name-exists), it returns a conflict instead of writing, so the host can offer a new name or a reload. A destination the provider cannot write to at all comes back as destination-refused with a reason for the user, and a container a provider lists with acceptsUploads: false is never offered as a destination. Providers can also implement canCreateFileIn(containerId) to omit the same-folder option for a loaded file in a container that cannot accept new files. Providers that omit writeBack stay read-only. @ifc-lite/source-fixture implements it for tests, and the Dalux provider implements it on Dalux's upload API (see the @ifc-lite/source-dalux README for its limits, including that in the browser it needs the relay upload routes from #9524). Dalux does not yet accept a file area's root as a destination; choose a folder inside it (#11609). Live Dalux uploads still require an API identity permitted to upload to the selected folder; the viewer does not grant additional scopes or bypass provider/relay permission and audit rules.

Dalux revision history

The Dalux Versions panel combines revisions pinned by coordination version sets with the file’s current revision, including uploads not yet added to a set. Multiple sets pinning the same revision produce one row naming those sets. Historical rows sort by date, then numeric revision number for same-day ties. Unknown dates stay blank, and raw user IDs are not shown as names.

The project sweep is cached for five minutes and reads fresh pins when rebuilt. A failed or undecodable set produces an explicit incomplete-history error with a short retry window. Projects with more than 250 version sets show an unavailable history error rather than a potentially misleading subset.