Attachments
A record can carry files: photographs from the field, a scanned plan, a signed consent form, a voice note. They sit beside the record rather than inside it, and the Attachments dialog is where you look at them, add to them and take them away.
Opening the dialog
| Where | What it opens |
|---|---|
| The paperclip on a Data Table row | The whole record. You may change things if you may change the layer. |
| Right-click a row | The same thing. The row menu carries an Attachments entry. |
| The paperclip on the feature popup | The whole record - but read-only whenever the popup is showing a layer that is not the active one. |
| A photograph in the record | Only the column that photograph belongs to. See one column at a time. |
The paperclip on a row also tells you whether there is anything to look at before you press it. It is solid and blue with a count beside it when the record has attachments, and faint when it has none. The count stops at 9+. The counts are fetched a page at a time, so just after you page or sort there is a moment where the paperclip is plain and says nothing either way.
The dialog does not block the map
It is not modal. You can drag it, resize it from any edge, maximise it, and leave it open while you carry on clicking the map. The pin in its header keeps it above every other dialog, so opening a record window cannot bury it.
What you are looking at
The header names the record and counts what this view is listing. That count follows the view, not the record, so a view scoped to one column shows a smaller number than the record actually holds.
The filter tabs
The tabs across the top narrow the list by type. All is always there. The rest appear only when the record actually holds something of that type, so a record of photographs shows Images and nothing else. Each tab carries its own count.
The tabs are: Images, PDFs, Docs for word processor, spreadsheet and presentation files, Video, Audio, Text for plain text, CSV and JSON, and Other for everything else, archives included.
The tab you are on also decides what the preview can page through. Move to Images and the preview steps between images only.
What a card shows you
A card carries a tick box, a picture, the file name, the caption if it differs from the name, the date it was uploaded, and a row of small buttons.
The picture is worth understanding, because the dialog does not make a small copy of anything. An image card shows the file itself, scaled down by your browser, so a page of twenty photographs from a modern phone means twenty full-size photographs coming down the line. They are fetched only once the card has been scrolled into view, which is why the squares fill in as you scroll rather than all at once.
A PDF is different again: the first page is rendered live inside the card. That is a computer-only trick, because phone browsers have no viewer to do it with, so on a phone a PDF card falls back to the red PDF symbol. Everything else gets a symbol for its type.
An empty square is not an empty file
If the browser cannot fetch an image, the card hides the picture rather than putting a symbol in its place. What you get is a blank square with a file name underneath it. Close the dialog and open it again - the links the dialog hands the browser last an hour, and a dialog left open longer than that will stop being able to load anything.
What you are allowed to do
Two kinds of permission decide what the dialog offers, and both are settled before it opens.
- Adding files to a record is a permission of its own, one for each kind of file: a photo taken with the camera, a photo chosen from the gallery or your computer, a PDF, a video recorded there and then, a video chosen from the gallery or your computer, a voice note recorded there and then, an audio file, and any other file. Your administrator sets them for your role on the layer, under Modifyable > Attachments. Upload offers only the types you may choose from a file, and the phone's camera buttons appear only when you may take a photo or record a video there and then.
- Changing or removing a file (Replace, Edit, Delete), and filling a photo, video or voice note column, is the same question as whether you may change the record.
A control you are not allowed to use is not greyed out. It is not drawn at all, so a read-only dialog looks like a smaller dialog rather than a disabled one. A read-only dialog still lets you open the preview, download a file, and tick several cards to download them together. What it leaves out is Upload, the camera, and the Replace, Edit and Delete buttons.
The popup's paperclip can open a read-only view
When the popup is showing a layer that is not the active one, its paperclip always opens read-only, whatever your permissions on that layer are. If you need to add or remove something, make that layer active first. See the popup's footer buttons.
Adding files
Upload opens your file browser and takes as many files as you pick. On a phone there are two more buttons beside it: the camera, which takes a photograph and attaches it there and then, and the video camera, which records a video. Each button shows only when your role may add that kind of file.
The files go up one after another, and the bar across the top counts files finished rather than bytes sent. Three files means the bar moves in three steps, and a large file sits at the same percentage for a long time before jumping.
Each file also has a line of its own in a small card at the bottom right of the screen: how much of it has gone up, for example 40% · 100 MB of 250 MB, and an × that cancels it. The card stays while the file goes up, even after you close the dialog.
The server reads what each file really is from its contents, not from its name, and refuses a kind your role may not add, saying so: You may not add PDF documents as attachments to this layer. It accepts a file up to 500 MB, unless your administrator has set another size (Site Settings > Record Limits, Largest attachment), and only these types: common images, PDF, Word, Excel, PowerPoint, OpenDocument, plain text, CSV, JSON, MP3, WAV, OGG, M4A, AAC, AMR, MP4, WebM, QuickTime, 3GP, ZIP, RAR, 7z and GZip. A file over 8 MB is sent in pieces, three at a time, and a piece the network drops is sent again, so a long video from a phone gets there over a patchy connection.
Count the cards after an upload
When the server turns a file away, a message names the file and the reason, and the other files still go up. The usual causes are a kind of file your role may not add, a file over the largest size, and a format the list does not carry.
Looking at one attachment
Pressing a card opens it. Images, PDFs, video and audio all play or render in place; anything else offers you a download button instead.
Moving between attachments works four ways, and they all do the same thing: the arrows at either side, the left and right arrow keys, the dots along the bottom, and a press on the left or right half of the picture itself. On a touch screen you can also swipe. All of them wrap around from the last back to the first.
The number in the header counts within the tab you are on, not within the record. On All it might read 3 / 7; move to Images and the same photograph becomes 2 / 4.
The button in the corner opens what the camera recorded: the position it was standing in, the height, the direction it was pointing, the size of the image, who uploaded it and when. Most files have none of this, and the panel says so.
Escape closes the preview and leaves the dialog open behind it. A second Escape closes the dialog.
Replacing, editing and deleting
Each card carries the same four buttons. Replace, Edit and Delete need permission to change the layer. Georeference has a permission of its own, Allow, described under Georeferenced Images.
| Button | What it does |
|---|---|
| Replace | Swaps the file for a new one, keeping the same attachment and the same place in the record. The version number goes up by one. |
| Edit | Opens a small form for the caption and the description. |
| Delete | Removes the attachment, after a confirmation. Tick several cards and Delete (n) at the top removes them all after one confirmation. |
| Georeference | Places an image or a PDF on the map. See Georeferenced Images. |
Replacing and deleting are both permanent
A replaced file is deleted from storage as the new one lands. The version number tells you it happened, but there is no way back to the old file. A deleted attachment is removed from storage and from the record together, and nothing is kept. Neither can be undone.
The caption is yours to write and shows on the card underneath the file name. The description is only sometimes yours: when an attachment belongs to a Photo column, the description is what records which column, so the box is locked and says so.
Downloading
The download button on a card saves that one file under its own name. Tick several cards and a Download (n) button appears at the top, which saves them one after another under the same names.
Your browser may ask about several files at once
A batch download is a run of ordinary single downloads, so a browser that queries a site saving more than one file will ask you once and then carry on. Allow it, or download the files a few at a time.
One column at a time
A Photo, Multiple Photos, Video, Multiple Videos or Voice Note column does not hold a picture or a recording. It holds the identifiers of attachments, and pressing one of them - in the popup, or in the record - opens the dialog showing that column alone. A video or a voice note plays there with its own controls, and stops when you move to the next attachment or close the preview.
That view is honest about what it is hiding. A bar along the bottom says how many more the record has, and Show all widens it back out to everything.
Uploading into a scoped view does two things: it attaches the file to the record, and it adds it to that column. Deleting from a scoped view takes it out of the column again.
Why the paperclip sometimes seems not to work
For about two seconds after you press a photograph, the paperclip is ignored. Pressing a photograph also selects the row and wakes the popup, and both of those try to reopen the dialog for the whole record a moment later; the column you actually asked for has to win. Press the paperclip again and it works, or use Show all, which is never refused.
If something looks wrong
| What you see | What it means |
|---|---|
| No Upload button | Your role may not add any file chosen from your device here (perhaps only photos from the camera), or the popup opened the dialog read-only for a layer that is not the active one. |
| You may not add … as attachments to this layer | Your role may not add that kind of file to this layer. Ask your administrator. |
| No delete, replace or edit on a card | The same thing. Controls you may not use are not drawn. |
| A blank square with a file name under it | The picture could not be fetched. Close the dialog and open it again. |
| Every picture went blank after a while | The dialog has been open more than an hour and its links have expired. Close it and open it again. |
| A PDF card shows a red symbol instead of the page | You are on a phone. Phone browsers cannot render a PDF inside a card. |
| The upload finished but a file is missing | The server refused it, and the message said why. Check that your role may add that kind of file, that it is under the largest size (500 MB unless changed), and that it is of an accepted type. |
| The count in the header is smaller than you expect | The view is scoped to one column. Look for the bar along the bottom and press Show all. |
| The paperclip does nothing | You pressed a photograph within the last two seconds. Press it again, or use Show all. |
| A tab you were using has gone | Tabs only exist while the record holds that type. Delete the last video and the Video tab goes with it. |
| Only some attachments can be paged through in the preview | The preview stays inside the tab you are on. Move to All. |
| The batch download stopped after the first file | Your browser blocked the rest. Allow multiple downloads for the site, or take them a few at a time. |
See also
- Data Table - the row paperclip, its count, and the row menu
- Feature Selection & Popup - the paperclip on the popup footer
- Georeferenced Images - putting an attached image or plan on the map
- Editing Records & Spatial Data - the permission that decides all of the above
- Layer Control - making a layer the active one
