You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update parameters associated with the file as per the [API documentation here](https://docs.imagekit.io/api-reference/media-api/update-file-details). The first argument to the `updateFileDetails` method is the file ID, and a second argument is an object with the parameters to be updated.
Add tags to multiple files in a single request as per [API documentation here](https://docs.imagekit.io/api-reference/media-api/add-tags-bulk). The method accepts an array of fileIDs of the files and an array of tags that have to be added to those files.
Remove tags from multiple files in a single request as per [API documentation here](https://docs.imagekit.io/api-reference/media-api/remove-tags-bulk). The method accepts an array of fileIDs of the files and an array of tags that have to be removed from those files.
This will copy a file from one location to another as per [API documentation here](https://docs.imagekit.io/api-reference/media-api/copy-file). This method accepts the source file's path and destination folder path.
This will move a file from one location to another as per [API documentation here](https://docs.imagekit.io/api-reference/media-api/move-file). This method accepts the source file's path and destination folder path.
This will copy one folder into another as per [API documentation here](https://docs.imagekit.io/api-reference/media-api/copy-folder). This method accepts the source folder's path and destination folder path.
This will move one folder into another as per [API documentation here](https://docs.imagekit.io/api-reference/media-api/move-folder). This method accepts the source folder's path and destination folder path.
This allows us to get a bulk operation status e.g. copy or move folder as per [API documentation here](https://docs.imagekit.io/api-reference/media-api/copy-move-folder-status). This method accepts `jobId` that is returned by copy and move folder operations.
This will create a new folder as per [API documentation here](https://docs.imagekit.io/api-reference/media-api/create-folder). This method accepts folder name and parent folder path.
This will delete the specified folder and all nested files & folders as per [API documentation here](https://docs.imagekit.io/api-reference/media-api/delete-folder). This method accepts the full path of the folder that is to be deleted.
Copy file name to clipboardExpand all lines: constants/errorMessages.js
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,26 @@ module.exports = {
7
7
"CACHE_PURGE_URL_MISSING" : {message : "Missing URL parameter for this request",help : ""},
8
8
"CACHE_PURGE_STATUS_ID_MISSING" : {message : "Missing Request ID parameter for this request",help : ""},
9
9
"FILE_ID_MISSING" : {message : "Missing File ID parameter for this request",help : ""},
10
+
"FILE_ID_OR_URL_MISSING" : {message : "Pass either File ID or remote URL of the image as first parameter",help : ""},
10
11
"UPDATE_DATA_MISSING" : {message : "Missing file update data for this request",help : ""},
11
12
"UPDATE_DATA_TAGS_INVALID" : {message : "Invalid tags parameter for this request",help : "tags should be passed as null or an array like ['tag1', 'tag2']"},
12
13
"UPDATE_DATA_COORDS_INVALID" : {message : "Invalid customCoordinates parameter for this request",help : "customCoordinates should be passed as null or a string like 'x,y,width,height'"},
13
14
"LIST_FILES_INPUT_MISSING" : {message : "Missing options for list files",help : "If you do not want to pass any parameter for listing, pass an empty object"},
14
15
"MISSING_UPLOAD_DATA" : {message : "Missing data for upload",help : ""},
"INVALID_PARENT_FOLDER_PATH": {messages : "Invalid parentFolderPath value",help : "It should be a string like '/path/to/folder'"},
24
+
"INVALID_FOLDER_PATH": {messages : "Invalid folderPath value",help : "It should be a string like '/path/to/folder'"},
17
25
// pHash errors
18
26
"INVALID_PHASH_VALUE": {message: "Invalid pHash value",help: "Both pHash strings must be valid hexadecimal numbers"},
19
27
"MISSING_PHASH_VALUE": {message: "Missing pHash value",help: "Please pass two pHash values"},
20
28
"UNEQUAL_STRING_LENGTH": {message: "Unequal pHash string length",help: "For distance calucation, the two pHash strings must have equal length"},
21
29
//bulk delete errors
22
-
"INVALID_FILEIDS_VALUE": {message: "Invalid value for fileIds",help: "fileIds should be an string array of fileId of the files to delete. The array should have atleast one fileId."}
30
+
"INVALID_FILEIDS_VALUE": {message: "Invalid value for fileIds",help: "fileIds should be an array of fileId of the files. The array should have atleast one fileId."},
31
+
"BULK_ADD_TAGS_INVALID": {message: "Invalid value for tags",help: "tags should be a non empty array of string like ['tag1', 'tag2']."}
0 commit comments