Let customers attach files to an Ascora booking
Attachments lets the customer add files when they book. Each file is sent to Ascora and added to the job the booking makes, or to the quote on a quote form.
Before you start
- Attachments are a Business feature. On the Free plan the page shows a plan notice, its fields are switched off, and the form does not ask for files. What you set is kept and used when you upgrade.
- The Ascora key needs the Notes: Write access, which Ascora uses for attachments as well as notes. Notes: Read is used when a file is sent again, to check Ascora does not already have it. See Ascora credentials.
Step by step
- Open your form from Forms. On the Settings tab, open Attachments under Form display.
- Switch Allow attachments on. The page says the files are added to the job (or quote) the booking makes in Ascora.
- Set Attachment field label, the heading the customer sees. Empty uses "Attachments".
- Set Minimum Qty. Zero makes files optional. Above zero, the form marks the field "(required)" and the customer cannot book without that many.
- Set Maximum Qty and Maximum file size (MB).
- Under File the uploads as, choose Attachments or Photos.
- Optionally type an Attachment Category.
- If the form has more than one service, choose under Services for displaying attachments which services ask for files. Leave it blank to ask on every service.
- Click Save. The page says "Attachments updated."
A new form starts with a minimum of 0, a maximum of 3 and a file size of 20 MB.
Limits
- Maximum Qty has to be at least 1 and no less than Minimum Qty.
- Maximum file size (MB) has to be between 1 and 20. Ascora does not publish a size limit for an attachment, so the form holds each file to 20 MB for now.
- Save stays off, with a note under the fields, until the numbers fit those rules.
- The customer sees "Drag 'n' drop files, or click to select files. Max 3 files, 20 MB each." (with your numbers). Once they have added the maximum, the drop area is replaced.
How it maps to Ascora
Each file is sent with POST /Attachments/Job/{id}, or /Attachments/Quotation/{id} for a quote.
| Setting | What Ascora does with it |
|---|---|
| File the uploads as: Attachments | Filed as a general attachment, on the job's Attachments tab |
| File the uploads as: Photos | Filed with the job's photos, as the mobile app's photos are |
| Attachment Category | The name of an Attachment Category in Ascora, not case sensitive. Empty files them without one |
The booking is saved first, then the files are uploaded and wait until the job exists. When Ascora has a file, the copy Formpiece held is removed. If a file cannot be uploaded the customer sees "Your booking was made, but 1 file could not be uploaded. Please send it to us another way." The booking page lists each file with its size and whether it has been sent, or why it was not. The file names are also written into the job description or note when Attachments is ticked on the Notes page.
When it goes wrong
A file is marked failed on the booking
The booking page shows Ascora's own words, or "The file could not be sent to Ascora." The file stays held so it can be sent again, and a failed file does not fail the booking. If the key lacks Notes: Write, every file fails.
A file over 100 MB
Whatever the form allows, the function that sends files to Ascora refuses a file larger than 100 MB. The form's own limit of 20 MB stops that before it can happen.
A file went to the wrong place
Check File the uploads as and Attachment Category. A category name that Ascora does not have is not created.
The form does not ask for files
- Allow attachments is off, or the maximum is zero.
- The form has services, and Services for displaying attachments names only others.
- The account is on the Free plan.
My change is not on the form
Saving publishes the form. If the page says the form could not be published, the change is saved and the form needs publishing again.