← 输入框|github.com|刷新
Skip to content
This repository was archived by the owner on Nov 29, 2021. It is now read-only.
This repository was archived by the owner on Nov 29, 2021. It is now read-only.

Upload large files with Dropnet #122

Open

Description

@g0ran1

I'm using Dropnet in Visual Studio 2010 and I've connected my project with Dropbox. When I try to use upload with files smaller than 4MB it's ok but when the files are larger there is a problem. I've searched and found a sollution, to add this code in web.config:

system.web>
httpRuntime executionTimeout="1000" maxRequestLength="104857600"/>
/system.web>

system.webServer>
security>
requestFiltering>
requestLimits maxAllowedContentLength="104857600"/>
/requestFiltering>
/security>
/system.webServer>

So this should allow me to upload files smaller than 100MB, I've succeeded with some files around 10MB but when I try around 50MB and smaller, somehow it gets stuck, no error or anything, and no matter what number I put in maxRequestLength and maxAllowedContentLength it's still the same. Please help. My code is:

if (filMyFile.PostedFile!=null)
{
Stream stream = filMyFile.PostedFile.InputStream;
int sLen = filMyFile.PostedFile.ContentLength;
byte[] binaryData = new byte[sLen];
int n = stream.Read(binaryData, 0, sLen);
_client.UploadFile("/Folder/", filMyFile.PostedFile.FileName, binaryData);
}

Activity

  1. staticcat commented on Apr 29, 2014

    @staticcat
    Contributor

    What is returned by UploadFile? Also what is the result if you use UploadFilePUT instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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