TagSpaces is an offline, open source, document manager with tagging support
fix upload s3 meta info
stanimirc11caf418903
diff --git a/app/components/DirectoryTreeView.tsx b/app/components/DirectoryTreeView.tsxindex 3cf59c6c4..eba98a99a 100644--- a/app/components/DirectoryTreeView.tsx+++ b/app/components/DirectoryTreeView.tsx@@ -158,7 +158,9 @@ const DirectoryTreeView = forwardRef((props: Props, ref) => {...(location.accessKeyId && { accessKeyId: location.accessKeyId }),...(location.bucketName && { bucketName: location.bucketName }),...(location.region && { region: location.region }),- ...(location.secretAccessKey && { secretAccessKey: location.secretAccessKey }),+ ...(location.secretAccessKey && {+ secretAccessKey: location.secretAccessKey+ }),uuid: location.uuid,name: location.name,type: location.type,diff --git a/app/components/LocationManager.tsx b/app/components/LocationManager.tsxindex 2014f98c0..a61249320 100644--- a/app/components/LocationManager.tsx+++ b/app/components/LocationManager.tsx@@ -466,12 +466,14 @@ class LocationManager extends React.Component<Props, State> {// TODO handle monitor -> isOver and change folder iconconsole.log('Dropped files: ' + path);if (targetLocation.type === locationType.TYPE_CLOUD) {- PlatformIO.enableObjectStoreSupport(targetLocation).then(() => {- this.props.uploadFiles(arrPath, targetPath);- return true;- }).catch(error => {- console.log('enableObjectStoreSupport', error);- });+ PlatformIO.enableObjectStoreSupport(targetLocation)+ .then(() => {+ this.props.uploadFiles(arrPath, targetPath);+ return true;+ })+ .catch(error => {+ console.log('enableObjectStoreSupport', error);+ });} else if (targetLocation.type === locationType.TYPE_LOCAL) {PlatformIO.disableObjectStoreSupport();this.props.moveFiles(arrPath, targetPath);diff --git a/app/reducers/io-actions.ts b/app/reducers/io-actions.tsindex 7f9d6d27c..22a33412d 100644--- a/app/reducers/io-actions.ts+++ b/app/reducers/io-actions.ts@@ -249,11 +249,19 @@ const actions = {) => {const uploadJobs = [];paths.map(path => {- uploadJobs.push([- path,+ const target =normalizePath(targetPath) +- PlatformIO.getDirSeparator() +- extractFileName(path, PlatformIO.getDirSeparator())+ PlatformIO.getDirSeparator() ++ extractFileName(path, PlatformIO.getDirSeparator());+ uploadJobs.push([path, target]);+ // copy meta+ uploadJobs.push([+ getMetaFileLocationForFile(path, PlatformIO.getDirSeparator()),+ getMetaFileLocationForFile(target, PlatformIO.getDirSeparator())+ ]);+ uploadJobs.push([+ getThumbFileLocationForFile(path, PlatformIO.getDirSeparator()),+ getThumbFileLocationForFile(target, PlatformIO.getDirSeparator())]);return true;});