diff --git a/app/templates/capture.html b/app/templates/capture.html
index 2d48009..4b31417 100644
--- a/app/templates/capture.html
+++ b/app/templates/capture.html
@@ -551,7 +551,8 @@ async function savePhoto(jpegBlob) {
String(now.getDate()).padStart(2, '0') + '_' +
String(now.getHours()).padStart(2, '0') +
String(now.getMinutes()).padStart(2, '0') +
- String(now.getSeconds()).padStart(2, '0');
+ String(now.getSeconds()).padStart(2, '0') +
+ String(now.getMilliseconds()).padStart(3, '0');
const filename = currentUsername + '_' + timestamp + '.jpg';
const targetPath = localStorage.getItem('nextsnap_upload_path') || '/';