> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hocdoc.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Files after acceptance

> The recipient uploads files after acceptance: create the question, what the recipient sees, which limits apply and where you download the files.

To start a collaboration, documents are often missing: a commercial register extract, a logo, a briefing. With a question of the type **File upload** in the [onboarding form](https://docs.hocdoc.com/en/guides/acceptance-and-certificate.md#onboarding-form-after-acceptance), the recipient uploads them on the same page after acceptance, without an account. You see them with the answers on the detail page and download them there.

## Create the question

Owners and admins maintain the questions in [Settings](https://docs.hocdoc.com/en/guides/settings.md#onboarding-form-after-acceptance-card) in the "Sender" tab, in the "Onboarding form after acceptance" card.

**1. Add a question**

Choose **Add question** and write the question text, for example "Commercial register extract".

**2. Choose the type**

Under **Answer type**, choose the entry "File upload". Besides "Short text" and "Long text", this is the third type.

**3. Note and required**

Under **Note for the recipient (optional)** you explain in one line what you need (1 to 300 characters). With **Required** you demand at least one file.

A file question counts toward the form's at most 10 questions. Otherwise everything works as with text questions: when [sending](https://docs.hocdoc.com/en/guides/sending.md) you choose per offer whether the form appears, and the send records the state of the questions. Sent offers keep their state. A new file question only applies to offers you send afterwards.

## What the recipient sees

After acceptance the form appears. For a file question there is the **Choose file** button (the page follows the [offer's language](https://docs.hocdoc.com/en/guides/language-per-offer.md)), below it your note and the limits: "PDF, images (PNG, JPG, WEBP), Word, Excel, PowerPoint, ZIP, TXT or CSV. Up to 10 MB per file and 5 files."

* Each file uploads immediately ("Uploading …"). The recipient can remove a file again before submitting.
* The form rejects a required file question without a file: "Please upload at least one file." If an upload is still running: "Please wait until all files have finished uploading."
* A file also counts as an answer. A form that consists only of files is valid.
* With **Submit details** the recipient submits answers and files together. After that the form is final. They can neither add nor remove files, and the page only shows the thank-you, never the files.

## Limits

| Limit | Value |
| - | - |
| Size per file | 10 MB |
| Files per question | 5 |
| Files per offer in total | 25 MB |
| Allowed types | PDF, PNG, JPG, WEBP, DOCX, XLSX, PPTX, ZIP, TXT, CSV |
| Length of the file name | 120 characters, HocDoc shortens longer names |

Anything else is rejected, such as SVG, HTML or programs. HocDoc does not rely on the extension or the browser's declaration: the server reads the start of the file and checks whether the content matches the extension. The file name is cleaned (no path, no special characters such as `:`, `*`, `?`). Per IP address and per link, the recipient may only make a limited number of calls in a short time. Above that the page reports: "Too many attempts. Please try again in a few minutes."

Messages when uploading are, for example, "This file type is not allowed.", "The file is too large. Files can be up to 10 MB each.", "You can upload up to 5 files for this question.", "All files together can be up to 25 MB." and "The file could not be uploaded. Please try again." If the check after uploading fails, HocDoc removes the file again.

## View and download files

On the detail page, the **Onboarding form** card shows for each file, below the file question, the name, size and time. Without a file it says "No file". **Download** downloads the file to your computer. For files of type PNG, JPG, WEBP or PDF, the file name is a button ("Open preview: \[Name]"): a click opens a dialog with the preview and the **Download** button, and **Close** ends it. For PDFs you page with **Previous page** and **Next page** ("Page 1 of 3"). If the preview cannot load, it says: "The preview couldn't be loaded. You can still download the file." Other file types stay with downloading. With **Download all files as ZIP** you get all the offer's files in one archive.

* All members of the workspace see the files of a submitted form, including viewers. The same rights apply to the preview as to the download, plus 120 calls per member in 10 minutes.
* HocDoc shows the PDF as an image of its pages. Scripts, links and forms from the PDF do not run in the process.
* The download link is only valid for 60 seconds. Every time you choose **Download**, HocDoc creates a fresh link. Per member, 60 downloads in 10 minutes are possible, plus 10 ZIP archives in 10 minutes. The same rights apply to the ZIP as to the single download.
* The files sit in private storage. Nobody can reach them from outside, not even through the link to the offer.
* You get the same email "Onboarding form submitted:" as before. It names the number of files ("This includes 3 files you can download there."), never a name, and attaches nothing.

## Reminder for open forms

If the recipient has not submitted the form after acceptance, HocDoc reminds them by email if the form has at least one required question.

* The reminders go out 2 and 5 days after acceptance, at most two. After 14 days there are no more.
* They only go out in the sending window and in the [offer's language](https://docs.hocdoc.com/en/guides/language-per-offer.md). They contain an unsubscribe link as with [automatic follow-ups](https://docs.hocdoc.com/en/guides/automatic-follow-ups.md). With it, the recipient turns off follow-ups and this reminder together.
* They apply to acceptances after the rollout, not to older ones.
* The **Onboarding form** card says when the next reminder goes out at the earliest ("Next reminder to the recipient on … at the earliest. Sent: … of 2."). With **Stop reminders** you turn them off for this offer. This cannot be undone.
* The reminder does not appear in the timeline.

## How long files are kept

* HocDoc deletes files that were not submitted after 14 days, unconfirmed uploads after only three hours.
* Submitted files never expire on their own.
* If the recipient removes a file before submitting, it is gone.

## What is not part of it

* The files are not part of what the recipient accepted. The certificate and the image of the acceptance do not contain them.
* Files appear neither in webhooks nor in the timeline. The timeline only carries the entry "Onboarding form submitted". Through the API you read them with `GET /offers/{id}/files` and `GET /offers/{id}/files/{fileId}` (see [Introduction](https://docs.hocdoc.com/en/api/introduction.md#offer-file)).
* HocDoc does not scan the files for malware and shows images and PDFs only as a preview, without running any content from them. Open files from third parties with the usual care.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.