The Wix File Upload Ceiling
Native Wix Forms impose file limits:
For agencies, studios and law firms collecting client documents, you usually want the file attached to the submission itself, so it shows up in your notification email and your connectors.
How FormWix Stores Attachments
FormWix keeps attachments in private storage, one folder per form. Files are never served from a public bucket: notification emails and the API return signed links that expire after 7 days.
Every attachment travels with its submission, so the email alert and each connector (Slack, Notion, Airtable, your webhook) receive the file name and link.
Option A: Pass a Wix Upload Button URL
If you already use a Wix Upload Button, let Wix upload the file, then send its URL with the submission. FormWix records it as an attachment.
import { fetch } from 'wix-fetch';
$w('#submitButton').onClick(async () => {
const uploaded = await $w('#uploadButton1').uploadFiles();
await fetch('https://formwix.com/api/v1/submissions?formId=YOUR_FORM_ID', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
name: $w('#nameInput').value,
email: $w('#emailInput').value,
files: uploaded.map((f) => ({ name: f.originalFileName, url: f.fileUrl }))
})
});
});Option B: Upload the File to FormWix
For a custom HTML form (Wix Studio embed), send the file to the FormWix upload endpoint as multipart/form-data, then include the returned link in the submission:
async function uploadToFormWix(file) {
const body = new FormData();
body.append('file', file);
body.append('formId', 'YOUR_FORM_ID');
const res = await fetch('https://formwix.com/api/v1/upload', { method: 'POST', body });
if (!res.ok) throw new Error((await res.json()).error || 'Upload failed');
const { fileName, url } = await res.json();
return { name: fileName, url };
}
// Then: files: [await uploadToFormWix(input.files[0])] in your submission payloadLimits & Security
Written by Dong Trinh
Lead Architect at FormWix. Passionate about high-performance visual web engineering, frictionless developer APIs, and building headless form infrastructure for modern agencies.