Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
feat(files): add overwrite confirmation dialog for file uploads and adapt API to support overwrite functionality
johavend39822fd2d78
diff --git a/backend/src/applications/files/files.controller.spec.ts b/backend/src/applications/files/files.controller.spec.tsindex 303d11bc..14c32f9d 100644--- a/backend/src/applications/files/files.controller.spec.ts+++ b/backend/src/applications/files/files.controller.spec.ts@@ -104,7 +104,7 @@ describe(FilesController.name, () => {})it('upload() should call filesMethods.upload(req, res)', async () => {- await filesController.upload(fakeReq, fakeRes)+ await filesController.uploadCreate(fakeReq, fakeRes)expect(filesMethodsMock.upload).toHaveBeenCalledWith(fakeReq, fakeRes)})diff --git a/backend/src/applications/files/files.controller.ts b/backend/src/applications/files/files.controller.tsindex c07223fa..c6037642 100644--- a/backend/src/applications/files/files.controller.ts+++ b/backend/src/applications/files/files.controller.ts@@ -15,6 +15,7 @@ import {Move,ParseIntPipe,Post,+ Put,Query,Req,Res,@@ -73,7 +74,12 @@ export class FilesController {}@Post(`${FILES_ROUTE.OPERATION}/${FILE_OPERATION.UPLOAD}/*`)- async upload(@Req() req: FastifySpaceRequest, @Res({ passthrough: true }) res: FastifyReply): Promise<void> {+ async uploadCreate(@Req() req: FastifySpaceRequest, @Res({ passthrough: true }) res: FastifyReply): Promise<void> {+ return this.filesMethods.upload(req, res)+ }++ @Put(`${FILES_ROUTE.OPERATION}/${FILE_OPERATION.UPLOAD}/*`)+ async uploadOverwrite(@Req() req: FastifySpaceRequest, @Res({ passthrough: true }) res: FastifyReply): Promise<void> {return this.filesMethods.upload(req, res)}diff --git a/backend/src/applications/files/services/files-manager.service.ts b/backend/src/applications/files/services/files-manager.service.tsindex c413a698..d59102cb 100644--- a/backend/src/applications/files/services/files-manager.service.ts+++ b/backend/src/applications/files/services/files-manager.service.ts@@ -178,7 +178,7 @@ export class FilesManager {async saveMultipart(user: UserModel, space: SpaceEnv, req: FastifySpaceRequest) {/* Accepted methods:POST: create new resource- PUT: create or update new resource (even if parent path does not exist)+ PUT: create or update new resource (even if a parent path does not exist)*/const realParentPath = dirName(space.realPath)diff --git a/backend/src/applications/files/services/files-methods.service.ts b/backend/src/applications/files/services/files-methods.service.tsindex f6b86e43..85c25ec3 100644--- a/backend/src/applications/files/services/files-methods.service.ts+++ b/backend/src/applications/files/services/files-methods.service.ts@@ -43,8 +43,6 @@ export class FilesMethods {try {await this.filesManager.saveMultipart(req.user, req.space, req)} catch (e) {- // if error we need to close the stream- // req.raw.destroy()this.logger.error(`${this.upload.name} - unable to ${FILE_OPERATION.UPLOAD} ${req.space.url} : ${e}`)return res.header('Connection', 'close')diff --git a/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.html b/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.htmlnew file mode 100755index 00000000..984c3c09--- /dev/null+++ b/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.html@@ -0,0 +1,25 @@+<!--+ ~ Copyright (C) 2012-2025 Johan Legrand <[email protected]>+ ~ This file is part of Sync-in | The open source file sync and share solution+ ~ See the LICENSE file for licensing details+ -->++<div class="modal-header">+ <h4 class="modal-title" l10nTranslate>+ <fa-icon [icon]="icons.faFileShield" class="me-1"></fa-icon>+ <span l10nTranslate>Overwrite Existing File(s)</span>+ </h4>+ <button (click)="layout.closeDialog()" aria-label="Close" class="btn-close btn-close-white" type="button"></button>+</div>+<div class="modal-body">+ <div l10nTranslate>Do you want to replace the existing file(s)?</div>+ <ul class="my-2" style="padding-left: inherit">+ @for (file of files; track $index) {+ <li><b>{{ file.name }}</b></li>+ }+ </ul>+</div>+<div class="modal-footer">+ <button (click)="onAction(false)" class="btn btn-sm btn-secondary" data-dismiss="modal" type="button" l10nTranslate>Cancel</button>+ <button (click)="onAction(true)" [disabled]="submitted" class="btn btn-sm btn-danger" type="button" l10nTranslate>Confirm</button>+</div>diff --git a/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.ts b/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.tsnew file mode 100644index 00000000..ea37d40d--- /dev/null+++ b/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.ts@@ -0,0 +1,40 @@+/*+ * Copyright (C) 2012-2025 Johan Legrand <[email protected]>+ * This file is part of Sync-in | The open source file sync and share solution+ * See the LICENSE file for licensing details+ */++import { Component, HostListener, inject, Input, output } from '@angular/core'+import { FaIconComponent } from '@fortawesome/angular-fontawesome'+import { faFileShield } from '@fortawesome/free-solid-svg-icons'+import { L10nTranslateDirective } from 'angular-l10n'+import { LayoutService } from '../../../../layout/layout.service'++@Component({+ selector: 'app-files-overwrite-dialog',+ imports: [FaIconComponent, L10nTranslateDirective],+ templateUrl: 'files-overwrite-dialog.component.html'+})+export class FilesOverwriteDialogComponent {+ @Input() files: File[] = []+ public overwrite = output<boolean>()+ protected layout = inject(LayoutService)+ protected readonly icons = { faFileShield }+ protected submitted = false++ @HostListener('document:keyup.enter')+ onEnter() {+ this.onAction(true)+ }++ @HostListener('document:keyup.escape')+ onEsc() {+ this.onAction(false)+ }++ onAction(overwrite: boolean) {+ this.submitted = overwrite+ this.overwrite.emit(overwrite)+ this.layout.closeDialog()+ }+}diff --git a/frontend/src/app/applications/files/services/files-upload.service.ts b/frontend/src/app/applications/files/services/files-upload.service.tsindex 69695265..ae28c7fc 100644--- a/frontend/src/app/applications/files/services/files-upload.service.ts+++ b/frontend/src/app/applications/files/services/files-upload.service.ts@@ -22,7 +22,7 @@ export class FilesUploadService {private readonly filesService = inject(FilesService)private readonly filesTasksService = inject(FilesTasksService)- async addFiles(files: FileUpload[]) {+ async addFiles(files: FileUpload[], overwrite: boolean) {const apiRoute = `${API_FILES_OPERATION_UPLOAD}/${this.filesService.currentRoute}`const taskReqs: [FileTask, Observable<any>][] = []@@ -32,7 +32,7 @@ export class FilesUploadService {const task: FileTask = this.filesTasksService.createUploadTask(path, name, data.size)taskReqs.unshift([task,- this.uploadFiles(`${apiRoute}/${key}`, data.form).pipe(+ this.uploadFiles(`${apiRoute}/${key}`, data.form, overwrite).pipe(filter((ev: any) => ev.type === HttpEventType.UploadProgress),tap((ev: HttpUploadProgressEvent) => this.updateProgress(task, ev)))@@ -56,16 +56,20 @@ export class FilesUploadService {}}- onDropFiles(ev: any) {+ onDropFiles(ev: any, overwrite: boolean) {if (ev.dataTransfer.items && ev.dataTransfer.items[0]?.webkitGetAsEntry) {- this.webkitReadDataTransfer(ev)+ this.webkitReadDataTransfer(ev, overwrite)} else {- this.addFiles(ev.dataTransfer.files).catch(console.error)+ this.addFiles(ev.dataTransfer.files, overwrite).catch(console.error)}}- private uploadFiles(url: string, form: FormData) {- return this.http.post(url, form, { reportProgress: true, observe: 'events' })+ private uploadFiles(url: string, form: FormData, overwrite: boolean) {+ return this.http.request(overwrite ? 'put' : 'post', url, {+ body: form,+ reportProgress: true,+ observe: 'events'+ })}private updateProgress(task: FileTask, ev: HttpUploadProgressEvent) {@@ -87,7 +91,7 @@ export class FilesUploadService {return sort}- private webkitReadDataTransfer(ev: any) {+ private webkitReadDataTransfer(ev: any, overwrite: boolean) {let queue = ev.dataTransfer.items.lengthconst files: FileUpload[] = []const readDirectory = (reader: any) => {@@ -120,7 +124,7 @@ export class FilesUploadService {}const decrement = () => {if (--queue == 0) {- this.addFiles(files).catch(console.error)+ this.addFiles(files, overwrite).catch(console.error)}}diff --git a/frontend/src/app/applications/files/services/files.service.ts b/frontend/src/app/applications/files/services/files.service.tsindex 2e71c7bc..19e265c2 100644--- a/frontend/src/app/applications/files/services/files.service.ts+++ b/frontend/src/app/applications/files/services/files.service.ts@@ -32,11 +32,13 @@ import type { FileContent } from '@sync-in-server/backend/src/applications/filesimport type { FileRecent } from '@sync-in-server/backend/src/applications/files/schemas/file-recent.interface'import { API_SPACES_TREE } from '@sync-in-server/backend/src/applications/spaces/constants/routes'import { forbiddenChars, isValidFileName } from '@sync-in-server/backend/src/common/shared'+import { BsModalRef } from 'ngx-bootstrap/modal'import { firstValueFrom, map, Observable, Subject } from 'rxjs'import { downloadWithAnchor } from '../../../common/utils/functions'import { TAB_MENU } from '../../../layout/layout.interfaces'import { LayoutService } from '../../../layout/layout.service'import { StoreService } from '../../../store/store.service'+import { FilesOverwriteDialogComponent } from '../components/dialogs/files-overwrite-dialog.component'import { FilesViewerDialogComponent } from '../components/dialogs/files-viewer-dialog.component'import { FileContentModel } from '../models/file-content.model'import { FileRecentModel } from '../models/file-recent.model'@@ -210,6 +212,17 @@ export class FilesService {)}+ async openOverwriteDialog(files: File[]): Promise<boolean> {+ const overwriteDialog: BsModalRef<FilesOverwriteDialogComponent> = this.layout.openDialog(FilesOverwriteDialogComponent, null, {+ initialState: {+ files: files+ } as FilesOverwriteDialogComponent+ })+ return new Promise<boolean>((resolve) => {+ overwriteDialog.content.overwrite.subscribe(resolve)+ })+ }+async openViewerDialog(mode: 'view' | 'edit', currentFile: FileModel) {this.http.head(currentFile.dataUrl).subscribe({next: async () => {diff --git a/frontend/src/app/applications/spaces/components/spaces-browser.component.ts b/frontend/src/app/applications/spaces/components/spaces-browser.component.tsindex e9e7e932..2859d24b 100644--- a/frontend/src/app/applications/spaces/components/spaces-browser.component.ts+++ b/frontend/src/app/applications/spaces/components/spaces-browser.component.ts@@ -556,32 +556,33 @@ export class SpacesBrowserComponent implements OnInit, AfterViewInit, OnDestroy}}- onUploadFiles(ev: { files: File[] }, isDirectory = false) {+ async onUploadFiles(ev: { files: File[] }, isDirectory = false) {+ let doOverwrite = falseif (isDirectory) {const dirName = ev.files[0].webkitRelativePath.split('/')[0]- if (this.files.find((f) => f.name === dirName)) {- this.layout.sendNotification('warning', 'This folder already exists', dirName)- return+ const dirExist = this.files.find((f) => f.name.toLowerCase() === dirName.toLowerCase())+ if (dirExist) {+ doOverwrite = await this.filesService.openOverwriteDialog([{ name: dirName } as File])+ if (!doOverwrite) return}} else {- for (const uF of ev.files) {- if (this.files.find((f) => uF.name === f.name)) {- this.layout.sendNotification('warning', 'This file already exists', uF.name)- return- }+ const exist: File[] = [...ev.files].filter((f: File) => this.files.some((x) => x.name.toLowerCase() === f.name.toLowerCase()))+ if (exist.length > 0) {+ doOverwrite = await this.filesService.openOverwriteDialog(exist)+ if (!doOverwrite) return}}- this.filesUpload.addFiles(ev.files).catch(console.error)+ this.filesUpload.addFiles(ev.files, doOverwrite).catch(console.error)}- onDropFiles(ev: { dataTransfer: { files: File[] } }) {- for (const uF of ev.dataTransfer.files) {- if (this.files.find((f) => uF.name === f.name)) {- this.layout.sendNotification('warning', 'This file already exists', uF.name)- return- }+ async onDropFiles(ev: { dataTransfer: { files: File[] } }) {+ let doOverwrite = false+ const exist: File[] = [...ev.dataTransfer.files].filter((f: File) => this.files.some((x) => x.name.toLowerCase() === f.name.toLowerCase()))+ if (exist.length > 0) {+ doOverwrite = await this.filesService.openOverwriteDialog(exist)+ if (!doOverwrite) return}- this.filesUpload.onDropFiles(ev)+ this.filesUpload.onDropFiles(ev, doOverwrite)}decompressFile() {diff --git a/frontend/src/i18n/de.json b/frontend/src/i18n/de.jsonindex 53f51a2b..4f68f85e 100644--- a/frontend/src/i18n/de.json+++ b/frontend/src/i18n/de.json@@ -536,8 +536,6 @@"Drop folder here": "Ordner hier ablegen","This directory is already synced": "Dieses Verzeichnis wird bereits synchronisiert","The parent directory is already synced": "Das übergeordnete Verzeichnis wird bereits synchronisiert",- "This folder already exists": "Dieser Ordner existiert bereits",- "This file already exists": "Diese Datei existiert bereits","This directory is not accessible": "Dieses Verzeichnis ist nicht zugänglich","This directory is read-only, you will not be able to modify it": "Dieses Verzeichnis ist schreibgeschützt; Sie können es nicht ändern","Please select the server directory to sync, if it doesn't exist you can create it.": "Bitte wählen Sie das Serververzeichnis zur Synchronisierung aus; falls es nicht existiert, können Sie es erstellen.",@@ -597,5 +595,7 @@"Valid with your TOTP code": "Mit Ihrem TOTP‑Code bestätigen","The secret has expired": "Der geheime Schlüssel ist abgelaufen","Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Bewahren Sie diese Codes an einem sicheren Ort auf. Sie ermöglichen Ihnen den Zugriff auf Ihr Konto, falls Sie den Zugriff auf Ihre Zwei‑Faktor‑Authentifizierung verlieren.",- "These recovery codes are for one-time use only and will only be displayed here once.": "Diese Wiederherstellungscodes sind nur einmal verwendbar und werden hier nur einmal angezeigt."+ "These recovery codes are for one-time use only and will only be displayed here once.": "Diese Wiederherstellungscodes sind nur einmal verwendbar und werden hier nur einmal angezeigt.",+ "Overwrite Existing File(s)": "Vorhandene Datei(en) überschreiben",+ "Do you want to replace the existing file(s)?": "Möchten Sie die vorhandene(n) Datei(en) ersetzen?"}\ No newline at end of filediff --git a/frontend/src/i18n/es.json b/frontend/src/i18n/es.jsonindex 3b193f16..e3137b8b 100644--- a/frontend/src/i18n/es.json+++ b/frontend/src/i18n/es.json@@ -536,8 +536,6 @@"Drop folder here": "Suelte la carpeta aquí","This directory is already synced": "Este directorio ya está sincronizado","The parent directory is already synced": "El directorio padre ya está sincronizado",- "This folder already exists": "Esta carpeta ya existe",- "This file already exists": "Este archivo ya existe","This directory is not accessible": "Este directorio no es accesible","This directory is read-only, you will not be able to modify it": "Este directorio es de solo lectura, no podrá modificarlo","Please select the server directory to sync, if it doesn't exist you can create it.": "Seleccione el directorio del servidor a sincronizar; si no existe, puede crearlo.",@@ -597,5 +595,7 @@"Valid with your TOTP code": "Valide con su código TOTP","The secret has expired": "El secreto ha expirado","Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Guarde estos códigos en un lugar seguro. Le permitirán acceder a su cuenta si pierde el acceso a su autenticación de dos factores.",- "These recovery codes are for one-time use only and will only be displayed here once.": "Estos códigos de recuperación son de un solo uso y solo se mostrarán aquí una vez."+ "These recovery codes are for one-time use only and will only be displayed here once.": "Estos códigos de recuperación son de un solo uso y solo se mostrarán aquí una vez.",+ "Overwrite Existing File(s)": "Sobrescribir archivo(s) existente(s)",+ "Do you want to replace the existing file(s)?": "¿Desea reemplazar el/los archivo(s) existente(s)?"}\ No newline at end of filediff --git a/frontend/src/i18n/fr.json b/frontend/src/i18n/fr.jsonindex 963ed8fb..addef8e2 100644--- a/frontend/src/i18n/fr.json+++ b/frontend/src/i18n/fr.json@@ -536,8 +536,6 @@"Drop folder here": "Déposer le dossier ici","This directory is already synced": "Ce répertoire est déjà synchronisé","The parent directory is already synced": "Le dossier parent est déjà synchronisé",- "This folder already exists": "Ce dossier existe déjà",- "This file already exists": "Ce fichier existe déjà","This directory is not accessible": "Ce répertoire n'est pas accessible","This directory is read-only, you will not be able to modify it": "Ce répertoire est en lecture seule, vous ne pourrez pas le modifier","Please select the server directory to sync, if it doesn't exist you can create it.": "Veuillez sélectionner le répertoire du serveur à synchroniser, s'il n'existe pas, vous pourrez le créer.",@@ -597,5 +595,7 @@"Valid with your TOTP code": "Validez avec votre code TOTP","The secret has expired": "Le secret a expiré","Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Conservez ces codes en lieu sûr. Ils vous permettront d’accéder à votre compte si vous perdez l’accès à votre authentification à deux facteurs.",- "These recovery codes are for one-time use only and will only be displayed here once.": "Ces codes de récupération sont à usage unique et ne seront affichés qu’une seule fois ici."+ "These recovery codes are for one-time use only and will only be displayed here once.": "Ces codes de récupération sont à usage unique et ne seront affichés qu’une seule fois ici.",+ "Overwrite Existing File(s)": "Écraser le(s) fichier(s) existant(s)",+ "Do you want to replace the existing file(s)?": "Voulez-vous remplacer le(s) fichier(s) existant(s) ?"}diff --git a/frontend/src/i18n/hi.json b/frontend/src/i18n/hi.jsonindex 23474d85..40153b5f 100644--- a/frontend/src/i18n/hi.json+++ b/frontend/src/i18n/hi.json@@ -536,8 +536,6 @@"Drop folder here": "फ़ोल्डर यहाँ छोड़ें","This directory is already synced": "यह निर्देशिका पहले से सिंक है","The parent directory is already synced": "अभिभावक निर्देशिका पहले से सिंक है",- "This folder already exists": "यह फ़ोल्डर पहले से मौजूद है",- "This file already exists": "यह फ़ाइल पहले से मौजूद है","This directory is not accessible": "यह निर्देशिका सुलभ नहीं है","This directory is read-only, you will not be able to modify it": "यह निर्देशिका केवल-पढ़ने योग्य है, आप इसे संशोधित नहीं कर पाएँगे","Please select the server directory to sync, if it doesn't exist you can create it.": "कृपया सिंक करने हेतु सर्वर निर्देशिका चुनें; यदि वह मौजूद नहीं है, तो आप उसे बना सकते हैं।",@@ -597,5 +595,7 @@"Valid with your TOTP code": "अपने TOTP कोड से सत्यापित करें","The secret has expired": "सीक्रेट समाप्त हो गया है","Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "इन कोडों को सुरक्षित स्थान पर रखें। यदि आप द्वि-कारक प्रमाणीकरण की पहुँच खो देते हैं, तो ये आपके खाते तक पहुँचने में मदद करेंगे।",- "These recovery codes are for one-time use only and will only be displayed here once.": "ये रिकवरी कोड केवल एक बार उपयोग के लिए हैं और यहाँ केवल एक बार दिखाए जाएँगे।"+ "These recovery codes are for one-time use only and will only be displayed here once.": "ये रिकवरी कोड केवल एक बार उपयोग के लिए हैं और यहाँ केवल एक बार दिखाए जाएँगे।",+ "Overwrite Existing File(s)": "मौजूदा फ़ाइल(ों) को अधिलेखित करें",+ "Do you want to replace the existing file(s)?": "क्या आप मौजूदा फ़ाइल(ों) को बदलना चाहते हैं?"}\ No newline at end of filediff --git a/frontend/src/i18n/it.json b/frontend/src/i18n/it.jsonindex 92c0708b..6f548f54 100644--- a/frontend/src/i18n/it.json+++ b/frontend/src/i18n/it.json@@ -536,8 +536,6 @@"Drop folder here": "Rilascia qui la cartella","This directory is already synced": "Questa directory è già sincronizzata","The parent directory is already synced": "La directory padre è già sincronizzata",- "This folder already exists": "Questa cartella esiste già",- "This file already exists": "Questo file esiste già","This directory is not accessible": "Questa directory non è accessibile","This directory is read-only, you will not be able to modify it": "Questa directory è di sola lettura, non potrai modificarla","Please select the server directory to sync, if it doesn't exist you can create it.": "Seleziona la directory del server da sincronizzare; se non esiste, puoi crearla.",@@ -597,5 +595,7 @@"Valid with your TOTP code": "Conferma con il tuo codice TOTP","The secret has expired": "Il segreto è scaduto","Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Conserva questi codici in un luogo sicuro. Ti permetteranno di accedere al tuo account se perdi l’accesso alla tua autenticazione a due fattori.",- "These recovery codes are for one-time use only and will only be displayed here once.": "Questi codici di recupero sono monouso e verranno mostrati qui una sola volta."+ "These recovery codes are for one-time use only and will only be displayed here once.": "Questi codici di recupero sono monouso e verranno mostrati qui una sola volta.",+ "Overwrite Existing File(s)": "Sovrascrivere il/i file esistente/i",+ "Do you want to replace the existing file(s)?": "Vuoi sostituire il/i file esistente/i?"}\ No newline at end of filediff --git a/frontend/src/i18n/ja.json b/frontend/src/i18n/ja.jsonindex 4dad6690..59cd2381 100644--- a/frontend/src/i18n/ja.json+++ b/frontend/src/i18n/ja.json@@ -536,8 +536,6 @@"Drop folder here": "ここにフォルダーをドロップ","This directory is already synced": "このディレクトリはすでに同期されています","The parent directory is already synced": "親ディレクトリはすでに同期されています",- "This folder already exists": "このフォルダーは既に存在します",- "This file already exists": "このファイルは既に存在します","This directory is not accessible": "このディレクトリにはアクセスできません","This directory is read-only, you will not be able to modify it": "このディレクトリは読み取り専用のため、変更できません","Please select the server directory to sync, if it doesn't exist you can create it.": "同期するサーバーディレクトリを選択してください。存在しない場合は作成できます。",@@ -597,5 +595,7 @@"Valid with your TOTP code": "TOTP コードで確認","The secret has expired": "シークレットの有効期限が切れました","Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "これらのコードは安全な場所に保管してください。二要素認証を利用できなくなった場合でも、アカウントにアクセスできます。",- "These recovery codes are for one-time use only and will only be displayed here once.": "これらの復旧コードは一度しか使用できず、ここに一度だけ表示されます。"+ "These recovery codes are for one-time use only and will only be displayed here once.": "これらの復旧コードは一度しか使用できず、ここに一度だけ表示されます。",+ "Overwrite Existing File(s)": "既存のファイルを上書き",+ "Do you want to replace the existing file(s)?": "既存のファイルを置き換えますか?"}diff --git a/frontend/src/i18n/ko.json b/frontend/src/i18n/ko.jsonindex 6b661c59..7e3d16a1 100644--- a/frontend/src/i18n/ko.json+++ b/frontend/src/i18n/ko.json@@ -536,8 +536,6 @@"Drop folder here": "여기에 폴더를 놓으세요","This directory is already synced": "이 디렉터리는 이미 동기화되었습니다","The parent directory is already synced": "상위 디렉터리는 이미 동기화되었습니다",- "This folder already exists": "이 폴더는 이미 존재합니다",- "This file already exists": "이 파일은 이미 존재합니다","This directory is not accessible": "이 디렉터리에 접근할 수 없습니다","This directory is read-only, you will not be able to modify it": "이 디렉터리는 읽기 전용이며 수정할 수 없습니다","Please select the server directory to sync, if it doesn't exist you can create it.": "동기화할 서버 디렉터리를 선택하세요. 존재하지 않으면 생성할 수 있습니다.",@@ -597,5 +595,7 @@"Valid with your TOTP code": "TOTP 코드로 확인","The secret has expired": "시크릿이 만료되었습니다","Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "이 코드는 안전한 곳에 보관하세요. 2단계 인증에 접근할 수 없게 되어도 계정에 접근할 수 있습니다.",- "These recovery codes are for one-time use only and will only be displayed here once.": "이 복구 코드는 1회용이며 여기에서 한 번만 표시됩니다."+ "These recovery codes are for one-time use only and will only be displayed here once.": "이 복구 코드는 1회용이며 여기에서 한 번만 표시됩니다.",+ "Overwrite Existing File(s)": "기존 파일 덮어쓰기",+ "Do you want to replace the existing file(s)?": "기존 파일을 교체하시겠습니까?"}diff --git a/frontend/src/i18n/pl.json b/frontend/src/i18n/pl.jsonindex 453385dc..71a7d5ea 100644--- a/frontend/src/i18n/pl.json+++ b/frontend/src/i18n/pl.json@@ -536,8 +536,6 @@"Drop folder here": "Upuść folder tutaj","This directory is already synced": "Ten katalog jest już zsynchronizowany","The parent directory is already synced": "Katalog nadrzędny jest już zsynchronizowany",- "This folder already exists": "Ten folder już istnieje",- "This file already exists": "Ten plik już istnieje","This directory is not accessible": "Ten katalog jest niedostępny","This directory is read-only, you will not be able to modify it": "Ten katalog jest tylko do odczytu, nie możesz go modyfikować","Please select the server directory to sync, if it doesn't exist you can create it.": "Wybierz katalog na serwerze do synchronizacji, a jeśli nie istnieje, możesz go utworzyć.",@@ -597,5 +595,7 @@"Valid with your TOTP code": "Potwierdź kodem TOTP","The secret has expired": "Sekret wygasł","Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Przechowuj te kody w bezpiecznym miejscu. Umożliwią dostęp do konta, jeśli utracisz dostęp do uwierzytelniania dwuskładnikowego.",- "These recovery codes are for one-time use only and will only be displayed here once.": "Te kody odzyskiwania są jednorazowe i zostaną tu wyświetlone tylko raz."+ "These recovery codes are for one-time use only and will only be displayed here once.": "Te kody odzyskiwania są jednorazowe i zostaną tu wyświetlone tylko raz.",+ "Overwrite Existing File(s)": "Nadpisać istniejący(e) plik(i)",+ "Do you want to replace the existing file(s)?": "Czy chcesz zastąpić istniejący(e) plik(i)?"}diff --git a/frontend/src/i18n/pt-BR.json b/frontend/src/i18n/pt-BR.jsonindex e231671b..046e8025 100644--- a/frontend/src/i18n/pt-BR.json+++ b/frontend/src/i18n/pt-BR.json@@ -536,8 +536,6 @@"Drop folder here": "Solte a pasta aqui","This directory is already synced": "Este diretório já está sincronizado","The parent directory is already synced": "O diretório pai já está sincronizado",- "This folder already exists": "Esta pasta já existe",- "This file already exists": "Este arquivo já existe","This directory is not accessible": "Este diretório não é acessível","This directory is read-only, you will not be able to modify it": "Este diretório é somente leitura; você não poderá modificá-lo","Please select the server directory to sync, if it doesn't exist you can create it.": "Selecione o diretório do servidor para sincronizar; se não existir, você pode criá-lo.",@@ -597,5 +595,7 @@"Valid with your TOTP code": "Validar com seu código TOTP","The secret has expired": "O segredo expirou","Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Guarde estes códigos em um local seguro. Eles permitirão acessar sua conta caso você perca o acesso à autenticação de dois fatores.",- "These recovery codes are for one-time use only and will only be displayed here once.": "Estes códigos de recuperação são de uso único e serão exibidos aqui apenas uma vez."+ "These recovery codes are for one-time use only and will only be displayed here once.": "Estes códigos de recuperação são de uso único e serão exibidos aqui apenas uma vez.",+ "Overwrite Existing File(s)": "Sobrescrever arquivo(s) existente(s)",+ "Do you want to replace the existing file(s)?": "Deseja substituir o(s) arquivo(s) existente(s)?"}diff --git a/frontend/src/i18n/pt.json b/frontend/src/i18n/pt.jsonindex e3232592..f99c9c1d 100644--- a/frontend/src/i18n/pt.json+++ b/frontend/src/i18n/pt.json@@ -536,8 +536,6 @@"Drop folder here": "Solte a pasta aqui","This directory is already synced": "Este diretório já está sincronizado","The parent directory is already synced": "O diretório pai já está sincronizado",- "This folder already exists": "Esta pasta já existe",- "This file already exists": "Este arquivo já existe","This directory is not accessible": "Este diretório não é acessível","This directory is read-only, you will not be able to modify it": "Este diretório é somente leitura; você não poderá modificá-lo","Please select the server directory to sync, if it doesn't exist you can create it.": "Selecione o diretório do servidor para sincronizar; se não existir, você poderá criá-lo.",@@ -597,5 +595,7 @@"Valid with your TOTP code": "Valide com seu código TOTP","The secret has expired": "O segredo expirou","Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Guarde estes códigos em um local seguro. Eles permitirão que você acesse sua conta se perder o acesso à sua autenticação de dois fatores.",- "These recovery codes are for one-time use only and will only be displayed here once.": "Estes códigos de recuperação são de uso único e serão exibidos aqui apenas uma vez."+ "These recovery codes are for one-time use only and will only be displayed here once.": "Estes códigos de recuperação são de uso único e serão exibidos aqui apenas uma vez.",+ "Overwrite Existing File(s)": "Sobrescrever arquivo(s) existente(s)",+ "Do you want to replace the existing file(s)?": "Deseja substituir o(s) arquivo(s) existente(s)?"}\ No newline at end of filediff --git a/frontend/src/i18n/ru.json b/frontend/src/i18n/ru.jsonindex be2c8505..06b86bb5 100644--- a/frontend/src/i18n/ru.json+++ b/frontend/src/i18n/ru.json@@ -536,8 +536,6 @@"Drop folder here": "Перетащите сюда папку","This directory is already synced": "Эта папка уже синхронизируется","The parent directory is already synced": "Родительская папка уже синхронизируется",- "This folder already exists": "Такая папка уже существует",- "This file already exists": "Такой файл уже существует","This directory is not accessible": "Эта папка недоступна","This directory is read-only, you will not be able to modify it": "Эта папка доступна только для чтения, вы не сможете её изменять","Please select the server directory to sync, if it doesn't exist you can create it.": "Выберите папку на сервере для синхронизации; если её нет, вы можете создать.",@@ -597,5 +595,7 @@"Valid with your TOTP code": "Подтвердите с помощью вашего TOTP-кода","The secret has expired": "Секрет истёк","Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Храните эти коды в надёжном месте. Они позволят вам получить доступ к аккаунту, если вы потеряете доступ к двухфакторной аутентификации.",- "These recovery codes are for one-time use only and will only be displayed here once.": "Эти коды восстановления одноразовые и будут показаны здесь только один раз."+ "These recovery codes are for one-time use only and will only be displayed here once.": "Эти коды восстановления одноразовые и будут показаны здесь только один раз.",+ "Overwrite Existing File(s)": "Перезаписать существующие файл(ы)",+ "Do you want to replace the existing file(s)?": "Вы хотите заменить существующие файл(ы)?"}\ No newline at end of filediff --git a/frontend/src/i18n/tr.json b/frontend/src/i18n/tr.jsonindex 9362caa6..3458dcf8 100644--- a/frontend/src/i18n/tr.json+++ b/frontend/src/i18n/tr.json@@ -536,8 +536,6 @@"Drop folder here": "Klasörü buraya bırakın","This directory is already synced": "Bu dizin zaten eşitlenmiş","The parent directory is already synced": "Üst dizin zaten eşitlenmiş",- "This folder already exists": "Bu klasör zaten mevcut",- "This file already exists": "Bu dosya zaten mevcut","This directory is not accessible": "Bu dizine erişilemiyor","This directory is read-only, you will not be able to modify it": "Bu dizin salt okunurdur, değiştiremezsiniz","Please select the server directory to sync, if it doesn't exist you can create it.": "Lütfen eşitlenecek sunucu dizinini seçin; yoksa oluşturabilirsiniz.",@@ -597,5 +595,7 @@"Valid with your TOTP code": "TOTP kodunuzla doğrulayın","The secret has expired": "Gizli anahtarın süresi doldu","Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Bu kodları güvenli bir yerde saklayın. İki aşamalı doğrulamaya erişimi kaybetseniz bile hesabınıza erişmenizi sağlar.",- "These recovery codes are for one-time use only and will only be displayed here once.": "Bu kurtarma kodları tek kullanımlıktır ve burada yalnızca bir kez görüntülenir."+ "These recovery codes are for one-time use only and will only be displayed here once.": "Bu kurtarma kodları tek kullanımlıktır ve burada yalnızca bir kez görüntülenir.",+ "Overwrite Existing File(s)": "Mevcut dosya(ları) üzerine yaz",+ "Do you want to replace the existing file(s)?": "Mevcut dosya(ları) değiştirmek istiyor musunuz?"}diff --git a/frontend/src/i18n/zh.json b/frontend/src/i18n/zh.jsonindex 072a23cb..a7e58c5d 100644--- a/frontend/src/i18n/zh.json+++ b/frontend/src/i18n/zh.json@@ -536,8 +536,6 @@"Drop folder here": "将文件夹拖放到此处","This directory is already synced": "该目录已同步","The parent directory is already synced": "父目录已同步",- "This folder already exists": "该文件夹已存在",- "This file already exists": "该文件已存在","This directory is not accessible": "该目录不可访问","This directory is read-only, you will not be able to modify it": "该目录为只读,您将无法修改","Please select the server directory to sync, if it doesn't exist you can create it.": "请选择要同步的服务器目录;若不存在,您可以创建它。",@@ -597,5 +595,7 @@"Valid with your TOTP code": "使用您的 TOTP 代码验证","The secret has expired": "密钥已过期","Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "请将这些代码保存在安全的地方。如果您无法使用双重身份验证,它们可帮助您访问账户。",- "These recovery codes are for one-time use only and will only be displayed here once.": "这些恢复代码仅可使用一次,并且只会在此显示一次。"+ "These recovery codes are for one-time use only and will only be displayed here once.": "这些恢复代码仅可使用一次,并且只会在此显示一次。",+ "Overwrite Existing File(s)": "覆盖现有文件",+ "Do you want to replace the existing file(s)?": "是否要替换现有文件?"}\ No newline at end of file