Skip to content

Commit

Permalink
fix(upload): Resolve 'got' error Unexpected option: formData (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
u1-liquid authored Jan 24, 2024
1 parent 06c34b3 commit ff86ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export default class 藍 {
public async upload(file: Buffer | fs.ReadStream, meta: any) {
const res = await got.post({
url: `${config.apiUrl}/drive/files/create`,
formData: {
form: {
i: config.i,
file: {
value: file,
Expand Down

0 comments on commit ff86ef2

Please sign in to comment.