Error when trying to upload a file over 4megs
Hi,
I am having an issue with uploading a file larger than 4 megs to cloudinary,
I am using C# to upload the file.
I have set up my app under configs to allow for a larger number for uploads as follows:
<httpRuntime targetFramework="4.5" maxRequestLength="1048576" />
and
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
My section of code doing this is as follows:
Stream trackStream = trackfile.InputStream;
var uploadParams = new RawUploadParams
{
File = new FileDescription(trackName, trackStream),
Folder = "tracks"
};
RawUploadResult uploadResult = _cloudinary.Upload(uploadParams);
return uploadResult.Uri.AbsoluteUri;
however there is an arror when i try to send the file:
The request was aborted: The request was canceled.
and the exception is thrown on this action: RawUploadResult uploadResult = _cloudinary.Upload(uploadParams);
-
-
Hi,
I am having an issue while i uploading a video having size greater than 120mb.
The error is the following
'POST https://api.cloudinary.com/v1_1/<name>/video/upload net::ERR_CONNECTION_RESET' .
Upload is done via direct upload using jQuery ($ajax request)
code:
formData.append("file", videoFile);
formData.append("upload_preset", $("#CloudinaryUploadPreset").val());
formData.append("resource_type", "video");
$.ajax({
url: '' + $("#CloudinaryUploadUrl").val() + '',
data: formData,
enctype: 'multipart/form-data',
cache: false,
contentType: false,
processData: false,
method: 'POST',
type: 'POST',
success: function (responseResult) {
}
});Could you please suggest me a solution for this..
Please reply fast..
-
-
Hi Alvith,
Can you please open a support ticket here - https://support.cloudinary.com/hc/en-us/requests/new as I will need some more information to understand the issue.
Thanks,
Post is closed for comments.
Comments
3 comments