Resources
The Resources tab lists the files you have uploaded to Marginalia: the pictures of the parts of your books and the audio that extensions such as the Audiobook store with them. The tab is the place to find a file again, to listen to audio, to download it, to swap it for a better one without touching the books that use it, and to throw away what you no longer need.
The files are grouped by what uses them: each row of the table is an object (for example a part of a book,
ChatMessage #123) with the number of its files, their total size and the date of the newest. Click the arrow in the
row to open the object and see its files. The table loads as you scroll and as you open a group, so it stays fast
with thousands of files. Click a column header to sort by it, the groups and the files in them follow; the newest
are first by default.
This is a note kept for you. A picture still works after the part it was added to is gone, and the same picture can be used by more parts (for example after you branch the story, the branch has the same pictures as the part it was made from); the cleanup keeps a file while any part still uses it.
Play
A file of an audio type (audio/mpeg, audio/wav...) has a Play button (triangle) in front of the other buttons.
It plays the file in the page; the button turns into Pause while it plays and back into Play when you stop it or
the audio ends. Only one file plays at a time: starting another stops the one that was playing.
Download
The download button (arrow down) in the row saves the file to your computer.
Replace the content
The upload button in the row opens a dialog where you choose a new file. The new content is saved as a new file and the entry now points to it, so everything that uses the entry shows the new content; you don't have to change the parts. Use it to swap a picture for a better version or to fix a wrong upload.
-
A picture can be replaced only by a picture (PNG, JPEG, GIF or WebP, up to 10 MB, as when adding images).
-
The name of the entry becomes the name of the new file.
-
The previous file is not deleted from the data folder, see
below .
Deleting
The trash button in the row deletes one file. To delete several, tick them in the first column and choose Delete selected above the table. Ticking a group (a row of an object) deletes all its files. The tick box in the header selects all groups. Marginalia asks before it deletes.
What delete does
-
The file disappears from the table and from the parts that use it: a part simply shows no picture any more. Text, summaries and exports of the part are not changed.
-
The entry is only marked as deleted. The cleanup in the administration removes it from the database for good.
-
The file stays in the data folder (
data/<your login>/images), also after cleanup. Deleting a resource does not free disk space by itself: an administrator removes the files nothing uses any more in the Resource Files tab of the administration. -
Until the cleanup removes the entry, you can bring it back from the Trash: the file is still in the data folder, so the picture works again. After the cleanup only a backup of the whole database made before contains the entry; the file itself is still in the folder.