Skip to content

Commit 3b89172

Browse files
author
Jagveer
committed
Added more upload method in the sample app
1 parent 51e9f87 commit 3b89172

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

sample/index.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,11 @@ const ImageKit = require("../index");
22
const fs = require("fs");
33
const path = require("path");
44

5-
// const CONFIG_OPTIONS = {
6-
// publicKey : "your_public_api_key",
7-
// privateKey : "your_private_api_key",
8-
// urlEndpoint : "https://ik.imagekit.io/your_imagekit_id/"
9-
// }
10-
115
const CONFIG_OPTIONS = {
12-
publicKey: '81shyFkcqoR/It6sCR1P845UtCY=',
13-
privateKey: 'qqHhrm/7WtoRcMuIORD2+75uPOA=',
14-
urlEndpoint: 'https://ik.imagekit.io/s11xanjcm/'
15-
};
6+
publicKey : "your_public_api_key",
7+
privateKey : "your_private_api_key",
8+
urlEndpoint : "https://ik.imagekit.io/your_imagekit_id/"
9+
}
1610

1711
const FILE_PATH = path.resolve(__dirname, "./test_image.jpg"), FILE_NAME = "test_image", IMG_URL = "https://images.pexels.com/photos/247676/pexels-photo-247676.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260";
1812

0 commit comments

Comments
 (0)