Limit file upload size

Last updated on

Note: All code examples on this site are provided for developer reference/guidance only and we cannot guarantee that they will always work as expected. Our support policy does not include assistance with modifying or debugging code from any code examples, and they may be changed or removed if we find they no longer work due to changes in our plugins.

By default, WP Job Manager inherits the maximum file upload filesize from WordPress.

If you want to specify a maximum filesize, the following code will set the limit to 1mb for non-admins.

Add this code to the Code Snippets plugin.

If this doesn’t work, you may need to try a different way to change the limit. See this article for some suggestions.