Skip to content

Commit

Permalink
fix(utils): removes fix from previous PR, which is unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
KenEucker committed Dec 30, 2021
1 parent 73e236b commit d168e73
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ export function createForm(payload: string | Payload): FormData {
}

for (const [key, value] of Object.entries(payload)) {
if (key === 'video') {
form.append(key, payload.stream, payload.name ?? 'file.mp4');
continue;
}

const supportedUploadObjectTypes = ['base64', 'stream'];
if (supportedUploadObjectTypes.indexOf(key) !== -1) {
if (supportedUploadObjectTypes.indexOf(payload.type as string) !== -1) {
Expand Down

0 comments on commit d168e73

Please sign in to comment.