---
layout: default-layout
noTitleIndex: true
needAutoGenerateSidebar: true
title: Can I limit the size of documents to be uploaded to my server?
keywords: Dynamic Web TWAIN, Security, limit upload size
breadcrumbText: Can I limit the size of documents to be uploaded to my server?
description: Can I limit the size of documents to be uploaded to my server?
date: 2021-11-29 18:33:59 +0000
last_modified: 2022-06-10 04:40:03 +0000
---

# Security

## Can I limit the size of documents to be uploaded to my server?

Yes. You can use the API [MaxUploadImageSize](/_articles/info/api/WebTwain_IO.md#maxuploadimagesize){:target="_blank"}.

Note that your web server may also impose maximum file upload size. For example, the default maximum file upload size in IIS6 is 4 MB and 28.6 MB for IIS7. You can change the maxAllowedContentLength value in web.config, IIS Manager, or ApplicationHost.config file.
