Skip to content

Commit

Permalink
Fix uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Nov 8, 2023
1 parent 71380e7 commit 20640b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39219,7 +39219,7 @@ async function run() {
*/
const find_mime = lite_1.default.getType(path.extname(file_path));
const file_length = fs.statSync(file_path).size;
const file_data = fs.createReadStream(file_path); /* await readableToString(
const file_data = fs.readFileSync(file_path); /* await readableToString(
fs.createReadStream(file_path)
);*/
const request_params = {
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ async function run() {

const find_mime = mime.getType(path.extname(file_path));
const file_length = fs.statSync(file_path).size;
const file_data: any = fs.createReadStream(
const file_data: any = fs.readFileSync(
file_path
); /* await readableToString(
fs.createReadStream(file_path)
Expand Down

0 comments on commit 20640b5

Please sign in to comment.