---
title: Visual Web Part for SharePoint 2016 - Large file(s) upload up to 10 GB
description: Existing version of SharePoint 2013 supports and allows to upload the files up to 2 GB. Now it is possible to upload larger files like more than 2 GB in SharePoint 2016. However, large file upload is not directly supported by OOTB (Out Of The Box), that we need to do some configuration on the farm. Let's, call it as prerequisite configurations.
image: https://blog.e-zest.com/hubfs/sneha-visual-web-part-for-sharepoint-2016-20170825.png
---

[![e-Zest logo\_An accion lab company\_Colour](https://blog.e-zest.com/hubfs/images/Logos%20with%20Tagline/Corporate/SVG/e-Zest%20logo_An%20accion%20lab%20company_Colour.svg "e-Zest logo_An accion lab company_Colour")](https://www.e-zest.com/)

- [WORK](https://www.e-zest.com/our-work)
- [SERVICES](https://www.e-zest.com/our-services) 
    - [Product Engineering](https://www.e-zest.com/digital-product-engineering-services)
    - [Enterprise Data Services](https://www.e-zest.com/enterprise-data-services)
    - [Digital Commerce](https://www.e-zest.com/digital-commerce-services)
    - [Digital Operations](https://www.e-zest.com/digital-operations)
    - [Digital Consulting](https://www.e-zest.com/digital-transformation-consulting-services)
    - [Digital Experience Design](https://www.e-zest.com/digital-experience-design)
- [INSIGHTS](https://blog.e-zest.com/)
- [CAREERS](https://www.e-zest.com/careers)
- [ENTERPRISE DATA SERVICES](https://www.e-zest.com/enterprise-data-services)
- [GENERATIVE AI](https://www.e-zest.com/generative-ai)
- [Healthcare](https://healthcare.e-zest.com)
- [Contact Us](https://www.e-zest.com/contact-us)

- ![Elevating Product Engineering with AI and ML](https://blog.e-zest.com/hubfs/Elevating%20Product%20Engineering%20with%20AI%20and%20ML.jpg)

  [BLOGS](https://blog.e-zest.com)
  
  #### Elevating Product Engineering with AI and ML

  As technology evolves and customer choices broaden, there is an increasing ...

  [Read more](https://blog.e-zest.com/elevating-product-engineering-with-ai-and-ml)
- ![e-Zest – An Accion Labs Company gets Recognition as a Contender in the ISG Provider Lens™ Study on Digital Engineering Services 2024](https://blog.e-zest.com/hubfs/e-Zest%20%E2%80%93%20An%20Accion%20Labs%20Company%20-%20Gets%20Recognition%20as%20a%20Contender%20in%20the%20ISG%20Provider%20LensTM%20Study%20on%20Digital%20Engineering%20Services%202024.jpg)

  [NEWS](https://blog.e-zest.com/news)
  
  #### e-Zest – An Accion Labs Company gets Recognition as a Contender in the ISG Provider Lens™ Study on Digital Engineering Services 2024

  We are delighted to announce that e-Zest – An Accion Labs Company has been ...

  [Read more](https://blog.e-zest.com/news/e-zest-an-accion-labs-company-gets-recognition-as-a-contender-in-the-isg-provider-lens-study-on-digital-engineering-services-2024)
- ![e-Zest Solutions supports Digital Pune Mission](https://blog.e-zest.com/hubfs/blog-files/Digital%20Literacy%20Bus%20e-Zest.png)

  [CSR](https://blog.e-zest.com/csr)
  
  #### e-Zest Solutions supports Digital Pune Mission

  **Pune, India:** e-Zest Solutions, a leading digital technology innovation ...

  [Read more](https://blog.e-zest.com/csr/e-zest-solutions-supports-digital-pune-mission)

- [Work](https://www.e-zest.com/our-work)
- [Services](https://www.e-zest.com/our-services)
- [Insights](https://blog.e-zest.com)
- [Careers](https://www.e-zest.com/careers)
- [Enterprise Data](https://www.e-zest.com/enterprise-data-services)
- [Generative AI](https://www.e-zest.com/generative-ai)
- [Innovations](https://www.e-zest.com/innovations)
- [Healthcare](https://healthcare.e-zest.com)
- [About](https://www.e-zest.com/about-us)
- [Contact](https://www.e-zest.com/contact-us)

- [Blog](https://blog.e-zest.com/)
- [News](https://blog.e-zest.com/news)
- [CSR](https://blog.e-zest.com/csr)

- [![Linkedin Icon](https://blog.e-zest.com/hubfs/icons/linkedin_icon_white.svg)](https://www.linkedin.com/company/e-zest-solutions/)
- [![Twitter Icon](https://blog.e-zest.com/hubfs/twitter-logo-silhouette%20(5).svg)](https://twitter.com/ezest)
- [![Facebook Icon](https://blog.e-zest.com/hubfs/facebook-app-logo%20(4).svg)](https://www.facebook.com/61259256638)
- [![Instagram Icon](https://blog.e-zest.com/hubfs/instagram-logo%20(4).svg)](https://www.instagram.com/ezestsolutions/)
- [![Youtube Icon](https://blog.e-zest.com/hubfs/icons/youtube_icon_white.svg)](https://www.youtube.com/user/ezestcorporate)

[![Go to top icon](https://blog.e-zest.com/hubfs/AA%20Assets/top%20button.svg)](https://blog.e-zest.com/visual-web-part-for-sharepoint-2016-large-files-upload-up-to-10-gb#top)

Hit enter to search or ESC to close

Insights

e-Zest members share technology ideas to foster digital transformation.

- [Blog](https://blog.e-zest.com)
- [News](https://blog.e-zest.com/news)
- [Podcasts](https://www.e-zest.com/podcasts)
- [Healthcare](https://blog.e-zest.com/healthcare)
- [CSR](https://blog.e-zest.com/csr)
- [Whitepaper](https://blog.e-zest.com/whitepaper)
- [Playbook](https://blog.e-zest.com/playbook)
- [Media Kit](https://www.e-zest.com/media-kit)

# Visual Web Part for SharePoint 2016 - Large file(s) upload up to 10 GB

[Uday Gaikwad](https://blog.e-zest.com/author/uday-gaikwad)  Aug 28, 2017

[SharePoint](https://blog.e-zest.com/topic/sharepoint) [SharePoint 2016](https://blog.e-zest.com/topic/sharepoint-2016) [OOTB](https://blog.e-zest.com/topic/ootb)

- <https://www.linkedin.com/shareArticle?mini=true&url=https://blog.e-zest.com/visual-web-part-for-sharepoint-2016-large-files-upload-up-to-10-gb&title=&summary=&source=>
- <https://twitter.com/intent/tweet?source=https://blog.e-zest.com/visual-web-part-for-sharepoint-2016-large-files-upload-up-to-10-gb&text=Visual%20Web%20Part%20for%20SharePoint%202016%20-%20Large%20file(s)%20upload%20up%20to%2010%20GB>
- <https://www.facebook.com/sharer/sharer.php?u=https://blog.e-zest.com/visual-web-part-for-sharepoint-2016-large-files-upload-up-to-10-gb>
- <https://www.instagram.com/ezestsolutions/?u=https://blog.e-zest.com/visual-web-part-for-sharepoint-2016-large-files-upload-up-to-10-gb>

![sneha-visual-web-part-for-sharepoint-2016-20170825.png](https://blog.e-zest.com/hs-fs/hubfs/sneha-visual-web-part-for-sharepoint-2016-20170825.png?width=741&name=sneha-visual-web-part-for-sharepoint-2016-20170825.png)

![visual-web-part-1.png](https://blog.e-zest.com/hs-fs/hubfs/visual-web-part-1.png?width=660&name=visual-web-part-1.png)Existing version of SharePoint 2013 supports and allows to upload the files up to 2 GB. Now it is possible to upload larger files like more than 2 GB in SharePoint 2016. However, large file upload is not directly supported by OOTB (Out Of The Box), that we need to do some configuration on the farm. Let's, call it as prerequisite configurations.

These prerequisites are applicable to only SharePoint 2016 on premise farm. SharePoint online supports large file uploads by default so no need to do any changes in case of SharePoint online. In this blog, we have covered file upload with SharePoint Visual WebPart farm solution. In case of SharePoint online, provider hosted app model can be used. Let's have a look into high level information of the areas used for uploading large file.

Large file handling managed CSOM API's - StartUpload, ContinueUpload, and FinishUpload

For more information about this API and core logic you can refer below link:

[https://github.com/SharePoint/PnP/tree/dev/Samples/Core.LargeFileUpload#large-file-handling---option-3-startupload-continueupload-and-finishupload](https://github.com/SharePoint/PnP/tree/dev/Samples/Core.LargeFileUpload#large-file-handling---option-3-startupload-continueupload-and-finishupload)

These API's are introduced and applicable for SharePoint 2016 and SharePoint Online.

In this approach, large files are broken into the chunks and uploaded to the server. We have to define chunk size considering network bandwidth and standards. In our case, we have defined 2MB of chunk size for uploads. We can resume upload operation if it fails in case of any network disturbances, but for that we have to maintain the state of each and every uploaded chunk. However, retrying of failed chunks functionality has not been covered in this blog.

In order to handle all these chunks we have to write a handler or web service at the server side using managed CSOM file upload API's.

It is very important to select a file upload control that will help us to break the file in chunks and post it to the server for uploading. For this we have used blueimp file upload J-Query control. This is really good control and has lot of features like, progress bar, statistics of file upload operations, sequential and parallel uploads, single file upload, multi file upload, drag and drop, resume uploads, cancel uploads, retry failed chunk operations. Similarly there are lot of helpful features and good documentation on github.

Now, we are going to see in detail each and every operation which are highlighted above. The use case is that we are going to create visual WebPart to upload large files in the SharePoint document library. It supports multi file upload, drag and drop and progress bar indicator. ADFS is configured for authentication.

- **Prerequisite for SharePoint 2016 to enable large file upload**

 You can follow below blog written by Viorel Iftode for configuration to support large file uploads:

[https://www.vioreliftode.com/index.php/how-to-make-sharepoint-2016-not-fail-long-running-uploads-large-files/](https://www.vioreliftode.com/index.php/how-to-make-sharepoint-2016-not-fail-long-running-uploads-large-files/)

 Apart from the above configuration, we need to configure maximum file size for a web application as shown below in steps,

1. In Central Administration, in Application Management, click Manage Web Applications
2. Select the application (for example, SharePoint - 80)
3. On the Web Applications ribbon, click the down arrow on the General Settings button
4. Click General Settings
5. Scroll to Maximum Upload Size
6. Set the property to the same number, or larger as the Maximum Workbook Size in Excel Services
7. Click OK

![visual-web-part-2.png](https://blog.e-zest.com/hs-fs/hubfs/visual-web-part-2.png?width=426&name=visual-web-part-2.png)

And also I would suggest to perform large file upload operation in the OOTB document library to make sure everything is in place.

- **Enable session state to maintain the state of each file chunk**

 We need to maintain state of each file chunk. It is not recommended to use session management in SharePoint, so this can be replaced with another state management methodology.

You can refer this blog to enable session on farm

[https://nikpatel.net/2012/02/12/enable-asp-net-session-state-on-sharepoint-2010-application/](https://nikpatel.net/2012/02/12/enable-asp-net-session-state-on-sharepoint-2010-application/)

- **Handler to serve and upload chunk requests**

Core business logic resides into this handler, and it supports multiple file upload functionality.

We have used new SharePoint 2016 API's for file upload into this handler. The logic is to identify first chunk, middle chunk and last chunk to follow StartUpload, ContinueUpload, and FinishUpload execution.

Please note that in this demo we have handled only POST request. GET and DELETE can be added for further improvements and functionality.

How to write handler in SharePoint is not covered in this POC, you can refer below blog to about custom handler in SharePoint.

[https://tjendarta.wordpress.com/2014/07/31/create-custom-http-handler-in-sharepoint/](https://tjendarta.wordpress.com/2014/07/31/create-custom-http-handler-in-sharepoint/)

If you have ADFS authentication then, in that case, you need to create client context as per provided guidelines in the below blog

[https://mikesmode.wordpress.com/2016/08/14/using-csom-with-saml-authentication-adfs/](https://mikesmode.wordpress.com/2016/08/14/using-csom-with-saml-authentication-adfs/)

Please make sure that the token constants are modified according to your environment.

![visual-web-part-3.png](https://blog.e-zest.com/hs-fs/hubfs/visual-web-part-3.png?width=673&name=visual-web-part-3.png)

In case you are not having ADFS configured, then you can use client context creation directly as suggested in below link.

[https://msdn.microsoft.com/en-us/library/office/ee537538(v=office.14).aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1](https://msdn.microsoft.com/en-us/library/office/ee537538(v=office.14).aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1)

- **blueimp file upload J-Query**

We have used blueimp file upload control for uploading files. For this POC, only few of features have been utilized from this control. This control has lot of features which can be explored by below link,

[https://github.com/blueimp/jQuery-File-Upload](https://github.com/blueimp/jQuery-File-Upload)

**You can download source for large file upload POC from below**  
[https://github.com/gaikwaduc/SP2016LargeFileUploaderWebPart](https://github.com/gaikwaduc/SP2016LargeFileUploaderWebPart)

- <https://twitter.com/intent/tweet?source=https://blog.e-zest.com/visual-web-part-for-sharepoint-2016-large-files-upload-up-to-10-gb&text=Visual%20Web%20Part%20for%20SharePoint%202016%20-%20Large%20file(s)%20upload%20up%20to%2010%20GB>
- <https://www.facebook.com/sharer/sharer.php?u=https://blog.e-zest.com/visual-web-part-for-sharepoint-2016-large-files-upload-up-to-10-gb>
- <https://www.linkedin.com/shareArticle?mini=true&url=https://blog.e-zest.com/visual-web-part-for-sharepoint-2016-large-files-upload-up-to-10-gb&title=&summary=&source=>

### Similar Blog

[![Technology news around the world - Week 21, 2019](https://blog.e-zest.com/hubfs/blog-files/e-Zest-%20Tech%20Digest.png) Technology news around the world - Week 21, 2019 **Securing cloud computing in this critical era**Cloud computing has changed every business and industry. Businesses are putting more ... By Corporate May 31, 2019](https://blog.e-zest.com/technology-news-around-the-world-week-21-2019)

[![Technology stories handpicked for you- Week 13, 2019](https://blog.e-zest.com/hubfs/blog-files/Slide13.jpeg) Technology stories handpicked for you- Week 13, 2019 **How cloud computing is about to change in 2019** By Corporate Apr 05, 2019](https://blog.e-zest.com/technology-stories-handpicked-for-you-week-13-2019)

[![Technology stories around the world- Week 11, 2019](https://blog.e-zest.com/hubfs/Slide11.jpeg) Technology stories around the world- Week 11, 2019 **Edge Computing: Saving the Cloud from ephemeral data** By Corporate Mar 22, 2019](https://blog.e-zest.com/technology-stories-around-the-world-week-11-2019)

[![Building modern intranet on SharePoint in Office 365](https://blog.e-zest.com/hubfs/blog-files/Building%20Modern%20Intranet%20on%20SharePoint%20in%20Office%20365-181228.png) Building modern intranet on SharePoint in Office 365 In any organization regardless of small scale or large scale, collaboration is a key aspect of its growth. Industry leaders ... By Sachin Katkar Dec 27, 2018](https://blog.e-zest.com/building-modern-intranet-on-sharepoint-in-office-365)

[![Tech news doing the rounds- Week 33, 2018](https://blog.e-zest.com/hubfs/Tech%20digest%20week%2033.jpg) Tech news doing the rounds- Week 33, 2018 **The global distribution of e-commerce**Even though e-commerce is expected to become huge, outpacing sales through retail outlets ... By Corporate Aug 17, 2018](https://blog.e-zest.com/tech-news-doing-the-rounds-week-33-2018)

## Helping Organizations Thrive in the Digital Age

[Contact Us](https://www.e-zest.com/contact-us)

- [About](https://www.e-zest.com/about-us)
- [Services](https://www.e-zest.com/our-services)
- [Work](https://www.e-zest.com/our-work)
- [Insights](https://blog.e-zest.com/)
- [Healthcare](https://healthcare.e-zest.com/)
- [Accion Labs](https://www.accionlabs.com/)

- <https://www.linkedin.com/company/e-zest-solutions/>
- <https://twitter.com/ezest>
- <https://www.facebook.com/eZest/>
- <https://www.instagram.com/ezestsolutions/>
- <https://www.youtube.com/user/ezestcorporate>

- Dallas
- Detroit
- Hannover
- Vienna
- London
- Pune

 © 2025 e-Zest Solutions

- [Privacy Policy](https://www.e-zest.com/privacypolicy)
- [Cookie Policy](https://www.e-zest.com/cookie-policy)

 Contact us

 Contact us

e-Zest is a leading digital innovation partner for enterprises and technology companies that utilizes emerging technologies for creating engaging customers experiences. Being a customer-focused and technology-driven company, it always helps clients in crafting holistic business value for their software development efforts. It offers software development and consulting services for cloud computing, enterprise mobility, big data and analytics, user experience and digital commerce.