8000 Upload of large files fails due to 32 mb limit · Issue #2370 · go-swagger/go-swagger · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Upload of large files fails due to 32 mb limit #2370
Closed
@tsorya

Description

@tsorya

Problem statement

Failing to upload file more than 32mb
Please remove the sections that don't apply

Swagger specification

post:
      tags:
        - ...
      summary: Agent API to upload logs.
      operationId: UploadFile
      consumes:
        - multipart/form-data
      parameters:
        - in: path
          name: id
          type: string
          format: uuid
          required: true
        - in: formData
          name: upfile
          type: file
          required: false
          description: The file to upload.

Steps to reproduce

auto generated curl with file of size bigger than 32mb

Environment

swagger version: 2.0
go version: go1.14.3
OS: Centos

if err := r.ParseMultipartForm(32 << 20); err != nil { if err != http.ErrNotMultipart { return errors.New(400, "%v", err) } else if err := r.ParseForm(); err != nil { return errors.New(400, "%v", err) } }
fails with 400.
There is a way to upload large file without changing this part?

Thanks a lot.

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

      0