-
Notifications
You must be signed in to change notification settings - Fork 86
Description
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