Skip to content

Uploading files larger than 4 MB #111

Closed

Description

Hi Muthurathinam (@muthurathinam), I was wondering if you could provide a sample of how to upload a file that is larger than 4 MB using a browser?

Activity

  1. muthurathinam commented on Sep 11, 2018

    @muthurathinam
    Contributor

    David Cannon (@DavidCannon) To upload a file to OneDrive..?

  2. DavidCannon commented on Sep 11, 2018

    @DavidCannon
    Author

    Yes. I'm actually uploading to SharePoint, but SharePoint and OneDrive for Business are pretty much the same. So what works for OneDrive should be fine. Thank you!

  3. muthurathinam commented on Sep 11, 2018

    @muthurathinam
    Contributor

    David Cannon (@DavidCannon)
    Support for Large File uploading to OneDrive is implemented and will be available in our next release.

    Thank you for your patience till our next release. We really appreciate it!
    883190

  4. DavidCannon commented on Sep 22, 2018

    @DavidCannon
    Author

    Thank you for this, but I'm afraid OneDrive for Business and SharePoint do not work, even though they are supported in the Graph API. The reason is because you have the "me" drive hard-coded, rather than allowing us to provide the drive ID. Here's an example of where it is hard-coded:

    return encodeURI(/me/drive/root:${path}${fileName}:/createUploadSession);

    Found here: https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/1.3.0/src/tasks/OneDriveLargeFileUploadTask.ts#L100

    Instead, we should be allowed to provide an options driveId, which then make the endpoint like this:

    /drives/${driveId}/root:${path}${fileName}:/createUploadSession

    And the endpoint to retrieve items from the root folder of a SharePoint drive would look something like this:

    /drives/${driveId}/root/children

    It would be great if this SDK supported SharePoint (and OneDrive for Business). Thanks for all your hard work! 👍

  5. muthurathinam commented on Sep 24, 2018

    @muthurathinam
    Contributor

    David Cannon (@DavidCannon) Thanks for notifying, Will work on this.

  6. jplevene commented on Oct 10, 2018

    @jplevene

    We are hitting the 4mb limit with emails as well. Our client's are obviously not liking it with some already abandoning 365.

  7. muthurathinam commented on Oct 11, 2018

    @muthurathinam
    Contributor

    Justin Levene (@jplevene) yes we have 4MB limitation for emails. Also we have plan to support emails larger than 4MB and I cannot give you the ETA as of now, this is going to take some time.

  8. songpr commented on Nov 27, 2018

    @songpr

    Muthurathinam (@muthurathinam) could you please allow us to pass option "@microsoft.graph.conflictBehavior": "replace" as well, since I want to replace it rather than rename

  9. muthurathinam commented on Dec 4, 2018

    @muthurathinam
    Contributor

    songpr Thank you for the ask. Will look into this.

  10. Pjata commented on Apr 4, 2019

    @Pjata

    Any update on this issue? We would like to use OneDrive as our document storage and this would greatly affect our decision.

  11. muthurathinam commented on Apr 5, 2019

    @muthurathinam
    Contributor

    Pjata Will fix this in next release which is scheduled to be released before end of April.

  12. muthurathinam commented on May 11, 2019

    @muthurathinam
    Contributor

    David Cannon (@DavidCannon) Justin Levene (@jplevene) songpr Pjata Your ask is done in this preview release. Please try and let me know your feedback. Refer this guide.

  13. jplevene commented on May 13, 2019

    @jplevene

    David Cannon (@DavidCannon) Justin Levene (@jplevene) songpr Pjata Your ask is done in this preview release. Please try and let me know your feedback. Refer this guide.

    Slight "error" I'm affraid. On the version site it says to load the script use:

    <script src="https://secure.aadcdn.microsoftonline-p.com/lib/VERSION/js/msal.min.js"></script>

    Changing VERSION to anything above 0.2.4 doesn't work. This is under "Creating an instance of MSALAuthenticationProvider in browser environment"

  14. muthurathinam commented on May 13, 2019

    @muthurathinam
    Contributor

    Justin Levene (@jplevene) The package depends on the particular version of msal. you can refer msal version number under devDependencies in package.json. Is your application depends on some other version of msal ?

  15. muthurathinam commented on May 15, 2019

    @muthurathinam
    Contributor

    Fixed in 1.7.0 release.

  16. DharmendraNaberly commented on Jan 28, 2020

    @DharmendraNaberly

    How to upload 5 files of 1MB each, as attachment in Outlook.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions