Skip to content

How to quickly send a 150MB PDF file #5696

@ethan2cl

Description

@ethan2cl

Is the feature you are looking for already implemented in the library?

  • I have reviewed the implemented features.

Is your "solution" already implemented in an opened pull request?

  • I have reviewed the existing pull requests.

Is your feature request related to a problem? Please describe.

My server bandwidth is 200M. I tried uploading PDF files and adjusted the code slightly. I sent the URL to the Chrome browser, downloaded it internally, converted it into a blob, and then sent it out through the WA API. The overall speed is a bit slow. Is there any way to optimize it? The main bottleneck lies in WA's window-STore.MediaUpload.uploadMedia method.

For example, I downloaded from 106M for 8s, sent for 90s, downloaded from 160M for 12.3s, and sent for 140s

Describe the solution you'd like.

The code has been modified as follows:

Image

Can I directly send my file URL to the WhatsApp server? Or can we send it out first and then send back the progress after the file upload is completed

Describe an alternate solution if you have one.

No response

Additional Context

No response

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