You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Streaming files to API (uploading) without multipart/form-data #1422
Is there any way how to stream large files to an API but without multipart/form-data? I retrieve an "UnsupportedMediaType" response when trying to do so. It seems that RestSharp is automatically sending the request as multipart/form-data if files are attached in body.
There are examples how to do with .NET HttpWebRequest (see linked stackoverflow question above) or Java, but I could not achieve with RestSharp library.
For the specific upload functionality I have written own logic using standard HttpClient, which is a pity as I have to maintain an additional client object (with corresponding redundancies).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
maeni70 commentedon Feb 3, 2020
For the specific upload functionality I have written own logic using standard HttpClient, which is a pity as I have to maintain an additional client object (with corresponding redundancies).
stale commentedon May 3, 2020
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
repo-ranger commentedon May 3, 2020