mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
refactor(database restores): use file interceptor (partial impl.)
This commit is contained in:
@@ -102,7 +102,7 @@ export const handleUploadDatabaseBackup = async () => {
|
||||
try {
|
||||
const [file] = await openFilePicker({ multiple: false });
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
formData.append('backup', file);
|
||||
|
||||
await uploadRequest<DatabaseBackupUploadDto>({
|
||||
url: getBaseUrl() + '/admin/database-backups/upload',
|
||||
|
||||
Reference in New Issue
Block a user