Skip to content

Commit 31dec9a

Browse files
authored
Merge pull request #80 from matheuspuel/patch-1
fix renameFile HTTP method
2 parents 89c62ba + 78be359 commit 31dec9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/manage/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ const renameFile = function (
514514

515515
const requestOptions = {
516516
url: "https://api.imagekit.io/v1/files/rename",
517-
method: "POST",
517+
method: "PUT",
518518
json: data,
519519
};
520520

0 commit comments

Comments
 (0)