Skip to content

Error "Can't find first part boundary" when uploading large file using browsers #1

Description

@dangngoctau

Reproduce steps:
I can upload a small text file and some additional data like this:

Request headers
Content-Length:827
Content-Type:multipart/form-data; boundary=----WebKitFormBoundarydBssixBaEaaAkZii
Host:secure-backend.osapps.dev-eu.peaxlabs.ch

Request Payload
------WebKitFormBoundarydBssixBaEaaAkZii
Content-Disposition: form-data; name="meta"

{"category":"standard","type":"DOCUMENT","documentDate":"2017-04-01","title":"Ihr Dokument","contentLanguage":["deu","fra","ita"],"specific":{"source":"UPLOAD","receivedAt":"2009-09-28T10:00:00+02:00","contractNumber":"contractNumber","customerNumber":"customerNumber"}}
------WebKitFormBoundarydBssixBaEaaAkZii
Content-Disposition: form-data; name="file"; filename="abc.json"
Content-Type: application/octet-stream

------WebKitFormBoundarydBssixBaEaaAkZii--

But I can't upload a pdf file like this:

Request headers
Content-Length:1760296
Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryXffIBA19WqQvxARB

Request Payload
------WebKitFormBoundaryXffIBA19WqQvxARB
Content-Disposition: form-data; name="meta"

{"category":"standard","type":"DOCUMENT","documentDate":"2017-04-01","title":"Ihr Dokument","contentLanguage":["deu","fra","ita"],"specific":{"source":"UPLOAD","receivedAt":"2009-09-28T10:00:00+02:00","contractNumber":"contractNumber","customerNumber":"customerNumber"}}
------WebKitFormBoundaryXffIBA19WqQvxARB
Content-Disposition: form-data; name="file"; filename="1000 Quick Writing Ideas.pdf"
Content-Type: application/pdf

------WebKitFormBoundaryXffIBA19WqQvxARB--

Could you please help me check the reason? Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions