diff --git a/middleware/app_be/services/dropboxservice.py b/middleware/app_be/services/dropboxservice.py index 1abbf72..6ae79ae 100644 --- a/middleware/app_be/services/dropboxservice.py +++ b/middleware/app_be/services/dropboxservice.py @@ -56,7 +56,7 @@ class DropboxService(StorageServiceInterface): return file_bytes @staticmethod - def move_file(identifier_from: str, identifier_to: str) -> bool: + def move_file(identifier_from: str, identifier_to: str, file: bytes) -> bool: """Move/Rename a file on the dropbox storage. :param identifier_from: Location of the file to be moved @@ -68,7 +68,7 @@ class DropboxService(StorageServiceInterface): dbx = dropbox.Dropbox(settings.DROPBOX_OAUTH2_ACCESS_TOKEN) url_from = settings.DROPBOX_IMAGE_FOLDER + identifier_from + '.jpg' - url_to = settings.DROPBOX_IMAGE_FOLDER + identifier_to + '.jpg' + url_to = settings.DROPBOX_IMAGE_FOLDER + identifier_to try: dbx.files_move_v2(url_from, url_to)