Jul 21 - Update to support photos' timestamp/location

This commit is contained in:
2026-07-21 16:22:13 -04:00
parent 2a0b264a5c
commit 1921f95faf
18 changed files with 261 additions and 5172 deletions
+7 -1
View File
@@ -301,9 +301,15 @@ class SyncManager: ObservableObject {
for photo in pending {
do {
// Capture metadata was recorded at the shutter, not now the
// sync may run hours after an offline capture, and the server
// burns these values into the photo as its timestamp/GPS bar.
let serverPath = try await APIClient.shared.uploadPhoto(
localPath: photo.localFilePath,
entityType: photo.entityType
entityType: photo.entityType,
capturedAt: photo.capturedAt,
latitude: photo.captureLatitude,
longitude: photo.captureLongitude
)
photo.serverPath = serverPath
photo.uploadStatus = "uploaded"