### [How to Change the Timeout on the Modern File Upload](https://wpforms.com/developers/how-to-change-the-timeout-on-the-modern-file-upload/)

**Published:** October 7, 2020
**Author:** Editorial Team

**Excerpt:** This article will walk you through how to increase the default time set on the Modern File Upload field for the timeout function. 

**Content:**

## Overview

Would you like to change the timeout when uploading files through the **Modern File Upload** form field? This can be particularly helpful when you are expecting large files to be uploaded through your form.

By default, the timeout set on the Modern File Upload field is set to **30 seconds** or **30000 milliseconds**, with a small PHP snippet you can easily change this timeout to be whatever you’d like.

## Setup

All you need to do is add this snippet to your site.

If you’re not sure where or how to add snippets to your site, [please take a look at this tutorial](https://wpforms.com/developers/how-to-add-custom-php-or-javascript-for-wpforms/ "How to Add Custom PHP or JavaScript for WPForms").

In our example, we’re changing the timeout from **30000 milliseconds (30 seconds)** to **60000 milliseconds (60 seconds)**.

```

/**
 * Change the timeout on the modern file upload from 30 to 60 seconds.
 *
 * @link https://wpforms.com/developers/how-to-change-the-timeout-on-the-modern-file-upload/
 */

function wpf_dev_modern_file_upload_timeout() {
	?>

**Categories:** Snippets

**Tags:** PHP

---

