TagSpaces is an offline, open source, document manager with tagging support
fix: adding multiple photos from ios
Ilian Sapundshiev52dc3ca6fec5
diff --git a/capacitor/ios/App/App.xcodeproj/project.pbxproj b/capacitor/ios/App/App.xcodeproj/project.pbxprojindex aec310285..a3b07e68d 100644--- a/capacitor/ios/App/App.xcodeproj/project.pbxproj+++ b/capacitor/ios/App/App.xcodeproj/project.pbxproj@@ -319,7 +319,7 @@CODE_SIGN_ENTITLEMENTS = App/App.entitlements;CODE_SIGN_IDENTITY = "Apple Development";CODE_SIGN_STYLE = Automatic;- CURRENT_PROJECT_VERSION = 10255;+ CURRENT_PROJECT_VERSION = 10257;DEVELOPMENT_TEAM = DLK22E2679;INFOPLIST_FILE = App/Info.plist;IPHONEOS_DEPLOYMENT_TARGET = 15.0;@@ -345,7 +345,7 @@CODE_SIGN_ENTITLEMENTS = App/App.entitlements;CODE_SIGN_IDENTITY = "Apple Development";CODE_SIGN_STYLE = Automatic;- CURRENT_PROJECT_VERSION = 10255;+ CURRENT_PROJECT_VERSION = 10257;DEVELOPMENT_TEAM = DLK22E2679;INFOPLIST_FILE = App/Info.plist;IPHONEOS_DEPLOYMENT_TARGET = 15.0;diff --git a/src/renderer/hooks/IOActionsContextProvider.tsx b/src/renderer/hooks/IOActionsContextProvider.tsxindex 21e714022..fbf7c4e84 100644--- a/src/renderer/hooks/IOActionsContextProvider.tsx+++ b/src/renderer/hooks/IOActionsContextProvider.tsx@@ -1128,6 +1128,24 @@ export const IOActionsContextProvider = ({try {fileName = decodeURIComponent(file.name);} catch (ex) {}+ // Camera / photo-library captures on mobile arrive with generic,+ // colliding names (iOS names every capture "image.jpg", videos+ // "video.mov"), so a second capture is skipped as "already exists".+ // Tag imported images and videos with the capture timestamp to make+ // each import unique, e.g. "image [20260612T122345].jpg".+ if (+ AppConfig.isNativeMobile &&+ (file.type?.startsWith('image/') || file.type?.startsWith('video/'))+ ) {+ fileName = generateFileName(+ fileName,+ [formatDateTime4Tag(new Date(), true)],+ tagDelimiter,+ currentLocation?.getDirSeparator(),+ ' ', // space before the [tag] container → "name [tag].ext"+ true, // place the tag at the end of the filename+ );+ }let filePath = joinPaths(currentLocation?.getDirSeparator(),targetPath,