Uploads and Large Files
This page explains what you may encounter during uploads. Regular users only need the first half; administrators should also read the second half.
What Regular Users Should Remember
Section titled “What Regular Users Should Remember”- Small files usually finish quickly
- Large files are automatically split into multiple parts
- After an upload is interrupted, AsterDrive resumes when it can
- To resume, select the same file again
- Resumable uploads expire: regular chunked sessions are usually valid for 24 hours, and direct-to-object-storage sessions are usually shorter
In daily use, you do not need to distinguish between regular upload, chunked upload, and direct-to-object-storage upload.
How the Upload Path Is Decided
Section titled “How the Upload Path Is Decided”What Administrators Should Prepare Before Deployment
Section titled “What Administrators Should Prepare Before Deployment”If you are responsible for deployment, confirm these items first:
- Which policy group is bound to the current user or team
- Which storage policy the policy group routes files to
- Whether the policy’s single-file size limit and chunk size are appropriate
- Whether the service’s local temporary directory has enough space
- Whether the reverse proxy upload size and timeouts are sufficient
- If you use direct-to-object-storage upload, whether the required browser-upload CORS rules are configured
- If you use OneDrive Graph direct upload, whether the browser and current network can reach Microsoft; Microsoft provides the required cross-origin support, so AsterDrive needs no additional setting
- If you use SFTP, whether the SSH host key fingerprint has been confirmed and saved
- If you use follower nodes, whether the follower already has an applied default remote storage target
- If you use remote
presigned, whether the remote node uses direct transport, whether the browser can reach the followerbase_url, and whether the follower exposes the required CORS response headers
Which Uploads Use Local Disk Heavily
Section titled “Which Uploads Use Local Disk Heavily”Not every upload lands on local disk first. The most common cases that noticeably consume temporary directory space are:
- Local storage, especially while assembling large chunked uploads
- Upload paths that require server-side processing
Watch the capacity of these directories:
data/.tmpdata/.uploads
The Two Common Object Storage Paths
Section titled “The Two Common Object Storage Paths”Server Relay
Section titled “Server Relay”The browser uploads the file to AsterDrive first, then the server forwards it to the storage policy backend. This path does not rely on the local temporary directory and does not perform content deduplication.
Direct-to-Object-Storage Upload
Section titled “Direct-to-Object-Storage Upload”The browser uploads the file directly to an object storage backend. Large files are automatically split into multiple parts. This saves the most server bandwidth, but the object storage must first allow the CORS rules required for browser uploads.
If you use this path, confirm at least:
- Browser-initiated
PUTis allowed - The upload site’s origin is allowed
ExposeHeadersincludesETag
If You Use SFTP
Section titled “If You Use SFTP”SFTP uploads and downloads are relayed by the AsterDrive server. Browsers do not connect directly to the SFTP server, and there are no presigned URL or CORS settings.
Before launch, confirm:
- The AsterDrive server can reach the SFTP endpoint and port
- SSH username / password credentials work
- The base path is writable
- The SSH host key fingerprint has been confirmed through a trusted channel and saved
If You Use OneDrive
Section titled “If You Use OneDrive”OneDrive has two upload paths:
server_relay: the browser uploads to AsterDrive, then AsterDrive writes to Microsoft Graph. This is the default retained for existing-policy compatibility, and file traffic passes through the AsterDrive node.frontend_direct: the browser uploads directly to Microsoft Graph. File traffic does not pass through the AsterDrive node, reducing server bandwidth use.
Graph direct upload is designed to work out of the box and needs no additional Microsoft Graph cross-origin setting. Microsoft credentials remain on the AsterDrive server and are not sent to the browser.
See the OneDrive storage policy tutorial for configuration and security boundaries.
When Uploads Fail, Check in This Order
Section titled “When Uploads Fail, Check in This Order”- Whether the current workspace is correct
- Which policy group is bound to the current user or team
- Whether the matched storage policy’s single-file size limit is sufficient
- Whether the reverse proxy request body size and timeout are sufficient
- If direct-to-object-storage upload is used, whether CORS is correct
- If OneDrive Graph direct upload is used, check whether a browser extension or company network blocks access to Microsoft
- If SFTP is used, whether Endpoint, SSH credentials, base path, and host key fingerprint are correct
- If a follower node is used, whether the node is enabled, the current transport mode passes connection testing, protocol capabilities are compatible, and the default remote storage target has been applied
- Whether the user or team quota is already full
When to Change Configuration
Section titled “When to Change Configuration”If users often upload large files, you usually only need to check these places:
- Single-file size limit and chunk size in
Admin -> Storage Policies - File-size routing rules in
Admin -> Policy Groups - Available space in the server’s local temporary directory
- Reverse proxy upload size and timeout
- Browser direct-upload allow rules on object storage
- OneDrive
server_relay/frontend_directmode and whether the browser and current network can reach Microsoft - SFTP endpoint, base path, and SSH host key fingerprint
- Follower node transport mode, protocol capabilities, default remote storage target, and network reachability; if remote
presignedis used, also confirm browsers can reach the followerbase_url