Skip to content

media/upload does work for images but not with videos #124

@faustoct1

Description

@faustoct1

this code works fine with images but doesn't with videos

url = await client.post("media/upload", { media_data: data })

{
  _headers: Headers {
    [Symbol(map)]: [Object: null prototype] {
      'cache-control': [Array],
      connection: [Array],
      'content-disposition': [Array],
      'content-encoding': [Array],
      'content-length': [Array],
      'content-type': [Array],
      date: [Array],
      expires: [Array],
      'last-modified': [Array],
      pragma: [Array],
      server: [Array],
      'set-cookie': [Array],
      status: [Array],
      'strict-transport-security': [Array],
      vary: [Array],
      'x-access-level': [Array],
      'x-connection-hash': [Array],
      'x-frame-options': [Array],
      'x-rate-limit-limit': [Array],
      'x-rate-limit-remaining': [Array],
      'x-rate-limit-reset': [Array],
      'x-response-time': [Array],
      'x-transaction': [Array],
      'x-tsa-request-body-time': [Array],
      'x-twitter-response-tags': [Array],
      'x-xss-protection': [Array]
    }
  },
  request: '/1.1/media/upload.json',
  error: 'media type unrecognized.'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions