Fix filename extension
This commit is contained in:
parent
2eb8f39f67
commit
9744bdcf3b
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user