Skip to content

Bruno HTTP Client Does Not Auto-Detect Content-Type Based on File Size in PUT Requests #422

@arpitapalc13

Description

@arpitapalc13

Description: When using Bruno HTTP client to perform PUT requests with file attachments, the client does not automatically adjust the Content-Type header or file transfer method based on the file size. This can lead to inefficient uploads and potential issues with large files.

Current Behavior:

Bruno sends all file uploads using the same content type regardless of file size
No automatic switching between single-part and multipart uploads based on file size thresholds
Content-Type header remains static even when file characteristics should dictate different handling

Expected Behavior:

Files below a certain threshold (e.g., 5MB) should use application/octet-stream or appropriate MIME type with single-part upload
Files above the threshold should automatically use multipart/form-data or chunked transfer encoding
Content-Type should be auto-detected based on file extension and size
Transfer method should optimize based on file characteristics

Impact:

Large file uploads fail or timeout
Inefficient network utilization for small files using multipart
Server-side handling complexity due to inconsistent content types
Poor user experience with upload reliability

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