Title: file size upload issue
Last modified: April 4, 2022

---

# file size upload issue

 *  [webatlas](https://wordpress.org/support/users/webatlas/)
 * (@webatlas)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/file-size-upload-issue/)
 * Hello everybody,
    I’m trying to use the “file” field for uploading excel files,
   everything works fine if the files are under 2MB, I tried to increase the maximum
   upload size allowed using “limit”.
 * I use the file field in this way:
    [file new-file filetypes: pdf | txt | xls 
   | xlsx limit: 5242880]
 * But even in this way it gives the same problem:
    [file new-file filetypes: pdf
   | txt | xls | xlsx limit: 5mb]
 * I also tried to modify some parameters in the function.php file, adding this 
   code:
 * @ini_set (‘upload_max_size’, ’64M’);
    @ini_set (‘post_max_size’, ’64M’); @ini_set(‘
   max_execution_time’, ‘300’);
 * I think it is a server-related problem, since in another environment I have no
   problems.
 * How do I get a more specific error code than this:
    “There was an error uploading
   the file.” ?
 * Thanks for the support you will want to give me
    -  This topic was modified 4 years, 5 months ago by [webatlas](https://wordpress.org/support/users/webatlas/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/file-size-upload-issue/#post-15526813)
 * Where can we see the website in question?
 *  Thread Starter [webatlas](https://wordpress.org/support/users/webatlas/)
 * (@webatlas)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/file-size-upload-issue/#post-15529532)
 * Here:
 * prod
    [https://clubdealonline.com/raccogli](https://clubdealonline.com/raccogli)
 * test
    [https://cb-manutenzione.net/cdo/raccogli](https://cb-manutenzione.net/cdo/raccogli)
    -  This reply was modified 4 years, 5 months ago by [webatlas](https://wordpress.org/support/users/webatlas/).
    -  This reply was modified 4 years, 5 months ago by [webatlas](https://wordpress.org/support/users/webatlas/).
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/file-size-upload-issue/#post-15530809)
 * What other plugins and theme do you use on the site?
 *  Thread Starter [webatlas](https://wordpress.org/support/users/webatlas/)
 * (@webatlas)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/file-size-upload-issue/#post-15531450)
 * Themes:
    Avada
 * Active plugin:
    Avada Builder Avada Core Contact Form 7 Contact Form CFDB7 Cookiebot
   | GDPR/CCPA Compliant Cookie Consent and Control Drag and Drop Multiple File 
   Upload – Contact Form 7 Duplica pagina Duplicator Pro Popup Maker Redirection
   Shortcodes Ultimate Slider Revolution Wordfence Security WP Fastest Cache WPML
   Media WPML Multilingual CMS WPML String Translation Yoast SEO
 * both in the test version and in the production one
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/file-size-upload-issue/#post-15532113)
 * Try switching to the default theme, deactivating all plugins excluding Contact
   Form 7, Wordfence Security and Yoast SEO, and clearing all cache data.
 * [Why you are advised to deactivate plugins and switch to the default theme.](https://contactform7.com/2019/12/02/why-you-are-advised-to-deactivate-plugins-and-switch-to-the-default-theme/)

Viewing 5 replies - 1 through 5 (of 5 total)

 The topic ‘file size upload issue’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/file-size-upload-issue/#post-15532113)
 * Status: not resolved