# Share File ▸ Share…, or the share button beside SAVE, makes a **link that opens a module in Mediante**. Send the link to somebody — in a chat, an e-mail, a forum post — and when they open it, Mediante asks them whether to fetch the module, and opens it. A link does not hold the module. It holds **where the module is kept**, after a `#` in this Mediante's address. A browser does not send that part of an address when it asks for a page, so opening a link tells the site Mediante is served from nothing of what the link names. So the module has to be kept somewhere a web page is allowed to fetch it from, and the three sections of the window are three ways of arriving at such a place. ## This module's own link Shown only when the module that is open already has an address: it was opened from a share link, or from Modland, scene.org or Aminet in the Library. The link is ready at once — nothing is uploaded and no account is needed. The link opens the file **where it is kept**, as it is kept there. Anything you have changed here is not in it, whether or not you have saved since - a save writes a file of your own - and the window says so. The other two sections are how a changed module is shared. A module opened from somebody else's link also has **KEEP A COPY IN MY DROPBOX**: the file, exactly as it was fetched, is written to `Apps/Mediante Backup/Received` in your Dropbox. It needs the Dropbox connection backups use (Settings ▸ Online ▸ Dropbox) and no more permission than that connection already has. A module opened from your own Dropbox has no public address, and the section says what to do instead. ## From an address For a module you have already put somewhere. Paste the file's address and press **MAKE LINK**: - **Dropbox** — the address "Copy link" gives for the file. (A link to a folder, or a Dropbox *Transfer*, will not do: share the file itself.) - **OneDrive** — the address **Share ▸ Copy link** gives for the file, shared with "Anyone with the link". Its address does not say what the file is called, so the link is made with the name OneDrive gives when it is tried. (A folder will not do; nor will an older link with `authkey=` in it, or a link to OneDrive for work or school, which this version does not open.) - **Google Drive** — the address **Share ▸ Copy link** gives for the file, shared with "Anyone with the link". Google Drive does not let a web page fetch its files, so a Drive link always comes through this site's server — the try too — and the window says so. The link is made with the name Drive gives. (A folder or a Google Docs document will not do.) - **GitHub**, **GitLab**, **Codeberg** — the address of the file's page in a repository. - **Modland**, **scene.org**, **Aminet**, the **Internet Archive** — the file's own address there. - **Any other `https` address** of a file on a site that lets web pages fetch from it. Mediante **tries the address before it makes the link**: it asks the site for the file and stops as soon as the answer has started, so nothing is downloaded. If the file can be opened the link appears, with **COPY**; if it cannot, the window says why and makes no link — a link that does not open is worse than none. iCloud and MEGA do not let a web page fetch a shared file, a Dropbox link with a password cannot be opened by a reader's browser, and The Mod Archive's links are not made because its terms of use do not clearly allow it. ## From Mediante's folder in your Dropbox One press, when Dropbox is connected for backups. **PUT IN DROPBOX AND SHARE** packs the module **as it is now** into a `.medz` — with its plugin chains, mixer and routing, and with any unsaved changes — writes it to `Apps/Mediante Backup/Shared`, asks Dropbox for a share link to it, and puts Mediante's link on the clipboard. **What the copy holds** is the whole module, as a save writes it, so that whoever opens it has what it takes to play it as it was made and to go on working with it: - the samples the instruments play, with their names — and, for a sample loaded from an mp3, mp2, ogg, opus or flac, that original file and the name it had; - for a sample that came from an online source, the record of where it is from: the source, its maker, its licence, and when it was fetched. A licence asks for that to travel with the sound. The tags you gave the sample in the Library do **not** go; - a sample set to play only part of itself goes **whole**: the part outside the play region is in the copy too; - **the files of the installed plugins its effects and instruments use.** Whoever opens the copy is asked whether to install them (see *What the reader sees*); the window says so after sharing, and says which of them, if any, a link will not offer. A plugin that is loaded from a site is **not** carried; the copy names it. For one from the community list, the reader is asked to allow that site. One you added by its address plays only for a reader who has added it too: a file is never taken at its word about where to load code from, so nobody is asked. Nor is an installed plugin whose files could not be read back from this browser. The window says which those are, and somebody who has not got one hears the module without it; - **the samples no instrument plays** — a spare take, something kept in case, an easter egg — with the files they came from and the names those had, **unless** *Include samples no instrument plays* is unticked first. The tick is on when the window opens: a save keeps them too, until Instrument ▸ Remove Unused Samples. A sample that one of an instrument's chains plays is not among them: it goes with the copy either way. The window says how many there are before you press, and how many went with the copy, or were left out, after; - **not** the record of when the module was imported, opened and saved. **A copy can be too large to share.** A link opens a file no larger than the download limit — Settings ▸ Online ▸ Library ▸ Largest download, 1 GB unless it is changed, and each reader's Mediante holds a link to its own — so a copy that packs larger than the limit set here is not put in Dropbox and gets no link: the window says how large it is, and, when the module holds samples no instrument plays, that leaving them out makes it smaller. A copy already in the folder that is larger says so in the list, and its link is neither made nor copied from there. - **It is not a save.** Nothing is downloaded and the unsaved mark stays. - **The copy is a snapshot.** Later edits and saves do not change it. When a module of the same name is shared already the button reads **UPDATE THE SHARED COPY**: it writes the module as it is now over that copy, and the link stays the same. - **Link expires** chooses when the link stops working. **unchanged**, where the window opens, changes nothing: a new link does not expire, and a link that exists keeps the expiry it has. **never** takes an expiry off; the rest make the link expire in a day, a week or a month. Dropbox offers links that expire on some of its paid plans only; where it does not, the window says so and the choice is greyed for a day. - **The first time**, Dropbox asks you to let Mediante make share links. The permission belongs to the backup connection, which can reach nothing but Mediante's own folder — so the only files it can ever publish are copies Mediante put there itself. **Shared from here** lists every copy in that folder: its size, the day it was written, and when its link expires. **COPY** copies its link again. **UPDATE** appears on the copy that has the open module's name. **STOP SHARING** switches the link off for everyone who has it and removes the copy from the folder; your own files, and the module that is open, are not touched. Nothing is shared from Mediante that is not in this list. A connection that has not been given the sharing permission — in a browser where it was never asked for — cannot see share links, and says **link not known** rather than "no link": the copy may well be shared. **SEE ITS LINK** and **STOP SHARING** both ask Dropbox for the permission first. If Dropbox makes a link that not everybody can open (an account whose team keeps links to its own members, or behind a password), the window says so and does not hand it out: such a link cannot open a module in Mediante. Anyone who has a link can open it, and can pass it on, until you stop sharing. ## What the reader sees Opening a link fetches nothing by itself. Mediante asks **"Open this shared module?"**, naming the file and the site it will be fetched from, and fetches on **OPEN**. A tick in that question remembers the site, so that later links to it open without asking; Settings ▸ Online ▸ Shared links is where that is changed back. Unsaved work is always asked about, and asked about again if anything changed while the file was on its way. **Plugins the module carries.** A `.medz` can carry the files of the plugins its effects and instruments use, and one opened from a link offers them as any `.medz` does: **Install bundled plugins?** Opened from a link, the question says so, lists what the file calls the plugins — their ids, each on a line of its own, eight at a time — and says what installing one means: a plugin is code that runs inside Mediante, so install only what comes from somebody you trust. What the question does not list is not installed. A link offers a plugin whose id is written as plugin ids ordinarily are: letters and digits in parts joined by dots or hyphens, like `com.someone.reverb` — eight parts and 64 characters at most. One whose id is written another way, or uses Mediante's own name, is not offered from a link: the question counts it (or, when nothing can be offered, the status line says so) and it is left where it is — the `.medz` itself, opened as a file, offers it. When there are more than eight, opening the link again with the first installed offers the next eight. **SKIP** plays the module without them. Nothing is installed without that answer. The link leaves the address bar once the module has opened and is in File ▸ Open Recent (a link too long for that list stays). If the site did not answer, it stays there too, and a reload asks again. If the module has an annotation, its window opens once the module has loaded and any question it brought has been answered — so a note written in View ▸ Module Annotation… before sharing is shown to a reader who would not have known to look for it. ## When Dropbox does not answer A Dropbox link is fetched by the reader's browser straight from Dropbox. If that fails — Dropbox does not promise that web pages may fetch shared files this way — Mediante asks this site's server to fetch the same file and pass it on, and the status line says so. The file then travels through this site's server, which does not keep it and never writes the link's key to a log. (A transfer cut short can leave a line there with the reader's address and the file's id and name.) **MAKE LINK** tries a Dropbox address the same way.