You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/fieldtypes/file.md
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,8 @@ A File field allows you to browse through existing files and upload new files.
25
25
26
26

27
27
28
-
Once a file has been selected in the field, that file can be replaced by clicking the <imgstyle="margin-bottom: 0px; vertical-align: middle; display:inline-block;"src="../../_images/icon_edit.png"alt="edit icon"> icon. The field selection can be cleared by clicking <imgstyle="margin-bottom: 0px; vertical-align: middle; display:inline-block;"src="../../_images/icon_remove.png"alt="remove icon"> icon (this will not remove the file from the system). You can also change the file metadata (such as the title or description) by clicking the <imgstyle="margin-bottom: 0px; vertical-align: middle; display:inline-block;"src="../../_images/icon_edit_meta.png"alt="settings icon"> icon - please note that file's metadata will be changed globally throughout the system.
28
+
Once a file has been selected in the field, that file can be replaced by clicking the <img style="margin-bottom: 0px; vertical-align: middle; display:inline-block;"
29
+
src="../_images/icon_edit.png" alt="edit icon"> icon. The field selection can be cleared by clicking <imgstyle="margin-bottom: 0px; vertical-align: middle; display:inline-block;"src="../_images/icon_remove.png"alt="remove icon"> icon (this will not remove the file from the system). You can also change the file metadata (such as the title or description) by clicking the <imgstyle="margin-bottom: 0px; vertical-align: middle; display:inline-block;"src="../_images/icon_edit_meta.png"alt="settings icon"> icon - please note that file's metadata will be changed globally throughout the system.
29
30
30
31
## Field Settings
31
32
@@ -170,6 +171,12 @@ The automatically-detected MIME type of the file.
170
171
171
172
The date the file was last modified. See [Date Variable Formatting](templates/date-variable-formatting.md) for more information.
172
173
174
+
One powerful use of the modified_date is 'cache busting', forcing browers to use a new image rather than a cached one when an image is modified but not renamed:
175
+
176
+
{image}
177
+
<img src="{url}?v={modified_date}" />
178
+
{/image}
179
+
173
180
### `{path}`
174
181
175
182
The URL to the folder containing the file, including a trailing slash.
0 commit comments