# Uploading

Putting files on the server from your browser. Files of any size go up, in pieces, and an upload that is interrupted can go on where it stopped.

## Three ways to start

| Way | Do |
|---|---|
| drag | drag files or whole folders from your computer onto the page: "Drag & Drop Files and Folders Here To Upload" |
| **Add files** | opens your computer's file chooser. **Upload Files** for files, **Upload Folder** for a folder with everything in it. |
| **Upload** in the menu bar | opens the upload window: "Use upload bar to add files to upload. Click on 'Add files...' button to add files" |

Files go into the folder you are in. To upload into another folder, go there first.

## The upload window

Everything you chose is listed in **Files To Upload**.

![The upload window](Web-Uploads/panel.png)

Each file shows its name, its size and, while it goes up, how far it is, with **Elapsed**, **Remaining** and **Speed**.

| Button | What it does |
|---|---|
| **Upload Selected** | starts the ticked files. With "When choosing file to upload, auto start upload." set in your [User Options](Web-Browsing.md#user-options), files start by themselves. |
| **Pause**, **Resume** | on one file |
| **Resume All** | goes on with everything that was interrupted |
| **Overwrite All** | uploads again and replaces what is on the server |
| **Re-Upload All** | "It will re-upload all files which are already uploaded, canceled, skipped or failed while uploading and it will overwrite existing files. Are you sure you want to continue?" |
| **Remove** | takes entries off the list: **All Selected**, **All With Error**, **All Uploaded**, **All Canceled**, **All Skipped**, **All**. This removes them from the list, not from the server. |
| **Share Uploaded**, **Share Selected** | opens [Sharing](Web-Sharing.md) for what you just uploaded: upload and send the link in one go |

The filter above the list shows only some of the entries, such as the failed ones: "(Filtered)".

The window can be moved and closed. Uploads go on while it is closed, and while you browse. The bell at the top right, **Activity**, shows what is under way and what is done, under **Uploads**.

## When the file is already there

For a file that exists on the server with the same name, its line offers:

| Choice | Does |
|---|---|
| **Overwrite** | replaces the file on the server |
| **Resume** | if the file on the server is the first part of yours: sends only the rest |
| **Skip** | leaves it |

Where the server keeps earlier versions, the file you replace is not lost: see [Earlier versions of a file](Web-Revisions.md).

## When it breaks off

A lost connection, a closed lid, a browser that was shut: the part that arrived is kept on the server.

- If the page is still open, it tries the piece that failed again by itself.
- Otherwise, add the same file again and choose **Resume**. Only what is missing is sent.

Large files are sent in pieces, and the size of a piece follows your connection: larger on a fast line, smaller on a poor one.

At the very end of a large upload: "Finalizing copying data from temp file to final destination file, pls wait." Wait for it. The upload is done when the line says so and "Uploaded in … at an average speed of …" appears.

## Folders

A dropped folder goes up with its subfolders, and the folders are made on the server as needed.

"Selecting large amount files to upload with web uploader is not recommended, you might face performance issues. We suggest using zip to combine files." For thousands of small files, zip them first, or use a file transfer program: see [Connecting by SFTP](Connect-SFTP.md).

## A form before the upload

Some servers ask a few questions before they take files: a reference number, a recipient, a note. The form opens when you start: **Upload Details**. Fields marked `*` must be filled: "One or more required items are not entered or not entered properly."

With several files, "Don't show form for additional files" uses the same answers for all. See [Forms](Web-Custom-Forms.md).

## What can stop an upload

| Message | Means |
|---|---|
| "Upload not allowed" / "You don't have permission to upload" | you may not write into this folder |
| "File type not allowed" | the server does not take files of this kind here |
| "0 byte file can't be uploaded" | the file is empty |
| "Your file quota exceeded" | your space on the server is used up. The foot of the page shows what is left: "( 1.04 GB Available )". |
| "Max number of files allowed to upload exceeded, maximum files allowed to upload: …" | too many at once |
| "Uploading directory is not allowed" / "Directories can not be uploaded, select only files" | folders are not accepted here |
| "Can't resume uploading till downloading finished" | a download is running; uploads and downloads wait for each other |
| "The operation stalled. Please try again or check your disk space." | nothing moved for a while: the connection, or something on your computer such as a virus scanner holding the file |
| "File uploading failed" | try **Resume**; if it fails again, read the line's details and ask |

## Things to know

- **Keep the page open** until the uploads are done. Closing the browser stops them; they can be resumed later.
- **Your session does not end during an upload.**
- **After the upload**, the server may do things with the file by itself: scan it, move it, tell somebody. If a file is gone from the folder a moment after it arrived, that is usually why.
- **Very large files and many files** go best with CrushMFT's own apps or a file transfer program, which the same account can use.

## For administrators

| What | Where |
|---|---|
| who may upload where | [VFS: permissions](VFS-Permissions.md) |
| which kinds of file are taken, and how large | [the user's restrictions](Users-Restrictions-Content.md) |
| quotas | [Quota](Quota.md) |
| forms at upload | [Custom forms](Prefs-WebInterface-Custom-Forms.md), [the user's forms](Users-WebInterface-Forms.md) |
| what happens after an upload | [Events](Users-Events.md) |
| the buttons a user has | [Buttons](Users-WebInterface-Buttons.md) |
