# MiniURLs

A MiniURL is a short address that leads straight to one file or one folder on the server, without a login:

```text
https://files.example.com/9234363683637
```

There is no user name and no password in it. The number is a key; the server knows which file or folder belongs to it and lets the visitor in by itself.

MiniURLs are made by an administrator. This page is for the people who get one, and for deciding when a MiniURL is the right kind of link. Making them is in [Preferences: MiniURLs](Prefs-WebInterface-MiniURL.md).

## What you get

| The MiniURL leads to | Opening it gives you |
|---|---|
| a file | the file, as a download, at once. No page, no login. |
| a folder | the [WebInterface](Web.md), opened in that folder. You are logged in as the account the administrator chose for the link, and can do there what that account may: usually download, sometimes upload. |
| a file that is gone | "not found" |
| nothing any more: the link has ended, or the key is wrong | the login page, as for any address that needs a login |

A file link does not log your browser in, and it does not disturb a login you already have on the same server: you can be working in your own account in one tab and fetch a MiniURL's file in another.

A folder link does log the browser in, as the link's account. If you were logged in as yourself in that browser, you are now that account: log out and in again to be yourself.

## Using one

- **Click it**, or paste it into the address bar.
- **Put it into a document, a mail, a web page, a QR code.** It is short enough to read out or print.
- **Fetch it with a program.** A file link is a plain download:

  ```bash
  curl -O -J https://files.example.com/9234363683637
  ```

  `-J` saves it under the file's own name. A download that broke off can be continued; the server answers requests for a part of the file.

Type or paste the address exactly: the key is the whole path, with nothing after it. Upper and lower case do not matter.

## A MiniURL, a share, or a link to a file?

The server has three kinds of link. They are for different jobs.

| | MiniURL | Share | **Copy Link** |
|---|---|---|---|
| made by | an administrator, in Preferences | any user who may share, in the WebInterface | any user, from the right-click menu |
| the visitor logs in | no | no: the link carries a temporary account of its own | yes, with their own account |
| leads to | one file or folder, as one chosen account sees it | the files and folders the user picked | the file or folder, for whoever may see it |
| ends | on its end date, or never | on its end date, or after a number of uses | never: it is only an address |
| the address | short: the server's name and a key | long | the path of the file |
| good for | a fixed address that stays: the price list, the current build, the drop folder of a partner | handing something to somebody, for a while | pointing a colleague, who has an account, at a file |
| see | this page | [Sharing](Web-Sharing.md) | [Browsing files](Web-Browsing.md) |

A MiniURL keeps working when the file behind it is replaced: the address is for the place, not for one version of the file. That is what makes it right for "always the latest".

## For whoever asks an administrator for one

Say:

- the file or folder;
- whether visitors only fetch, or also upload;
- until when it is needed. Ask for an end date: a link that never ends is easy to forget.

And treat the address as a password: whoever has it, has what it leads to.

## Things to know

- **No account is made for the visitor.** Everybody who uses the link is the same account on the server. The record shows that account and the visitor's network address, not a name.
- **A link can stop without warning.** The administrator can remove it, its end date can pass, or the password of its account can be changed.
- **The link is as safe as the place it is written.** A MiniURL on a public web page is public.
- **Use the `https://` address.** Over plain `http://` the key travels unprotected.
- **Programs that only ask about a link** without fetching it, as some link checkers and mail scanners do, are answered with "login needed". The link itself is fine.

## For administrators

| What | Where |
|---|---|
| making, changing and ending MiniURLs | [Preferences: MiniURLs](Prefs-WebInterface-MiniURL.md) |
| an account that may do no more than the link needs | [Good practice](Prefs-WebInterface-MiniURL.md#good-practice) |
| links that users make themselves | [Sharing](Web-Sharing.md) |
| links without any login to a whole public area | [Anonymous access](Prefs-WebInterface.md#anonymous-access) |

## Tried for this page

On a test server: a file MiniURL (the file came as a download named after the file, with no login set in the browser, also over HTTPS, and a part of the file could be asked for), a folder MiniURL (the browser was sent into the folder and logged in), a key that does not exist and a key with a `/` after it (both: login needed), and a request that only asks about the link (login needed). Not tried: an ended MiniURL, and an upload through a folder link.
