-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue uploading files (sync) #742
Comments
I'have the same issue |
I've found the issue too. |
The issue seems to be that the file parameter is added without setting the content length: |
@dgreenbean thanks for filing a PR to address the issue. |
Thanks for the PR on this as well. I'll get it reviewed an merged in ASAP. |
out of curiosity, what framework editions are people running into this issue with? |
I'm using Mono 4.0.3 |
I'm using .NET 4.0 and .NET 4.5. |
See restsharp/RestSharp#742 for bug details
@hallem is there anything we (community) can do to get the fix (PR769) merged into master? |
I have this issue. Did this get resolved? I always download the latest nuget package through visual studio, but I don't have the updated method signature with the content length in it. |
It is right there: public IRestRequest AddFile(string name, Action<Stream> writer, string fileName, long contentLength,
string contentType = null) |
With the latest version of RestSharp (105.2.2), I ran into an issue uploading a file with the following error message:
Using an older version of RestSharp (105.1.0), I was able to upload the file without issue. Here is the code to repeat the issue.
Has anyone run into similar issue?
The text was updated successfully, but these errors were encountered: