• Resolved anniekjose

    (@anniekjose)


    Hi,

    I want my users to be able to upload a videofile and a powerpoint file to my website. However, with bigger files, lets say 20mb+, the form gives an error.

    Any ideas on how to solve this?

    I used an example file from around 60mb, which gave the error. Clients will upload files from aprox. 100mb.

    Kind regards!

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @anniekjose

    I hope you are doing good today.

    By default file upload field is set up to an 8MB limit. Could you double-check in the first place does that limit was corrected by you in that field? You should find that limit control in the settings tab of that field.

    If the above is set up correctly, please check with your host does upload_max_filesize value isn’t too low. You should possibly change that to 128M with your host.

    Please let me know does that help.

    Kind Regards,
    Kris

    Thread Starter anniekjose

    (@anniekjose)

    Hi @wpmudevsupport13 ,

    Thank you for your response and suggestions. The limit was already set to 500mb, but I checked with my host and there the limit was indeed to low. I upped it, but unfortunately it still gives the same upload error. I saw that with the host I have, the I/O usages is also limited to 1 MB/s, but as far as I know that only limits the speed, not the max file size. It doesn’t matter if it isn’t very fast, as long as it works.

    I hope you have any other suggestions!

    Thanks in advance

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @anniekjose,

    Could you please check whether you could upload the file in the Media Library without any issue? ie under Media > Library page in the dashboard side.

    That would help us to rule out whether its an issue within Form side or the server.

    Please do let us know how that goes so that we could check further if needed.

    Kind Regards,
    Nithin

    Thread Starter anniekjose

    (@anniekjose)

    Hi @wpmudevsupport11,

    I check that, it works fine.

    Kind regards,
    Anniek

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @anniekjose

    Thanks for response!

    Forminator shouldn’t impose any limits (other than what’s set in field configuration) but it can’t go over server and WP limits.

    Could you please take a look at Upload file settings again in form and in “Filesize limit” section, right above the upload limit setting field, there should be a short description starting with

    “We’ve detected your server will allow uploads up to…”

    What’s the value stated there? Is it lower or higher than the size of the files you want to upload? How does it related to current server settings discussed earlier?

    I understand that server is allowing files big enough and it does really handle them (when uploading via Media Library) but I’m wondering if Forminator correctly detects it on your end.

    Let me know please.

    Best regards,
    Adam

    Thread Starter anniekjose

    (@anniekjose)

    Hi @wpmudev-support8,

    It says:

    We’ve detected your server will allow uploads up to 536MB in size currently. You can set a lower limit than this using the input below, however if you want uploads of more than 536MB you’ll need to adjust this in your server PHP.ini settings.

    The file I am trying to upload is only 60mb, so that should be no problem.

    Kind regards,
    Anniek

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @anniekjose

    Yes, indeed, that should be way above the needs.

    I think then that if it fails there must be some other issue which might be related to resource usage happening during upload through Forminator. It also means that it may actually be possible that the I/O limit is, in fact, related.

    It’s the “speed” limit but huge updates are “chunked”, so to say, and that can result in that limit being “abused”. That’s just one of the possibilities, though.

    Getting back to the start then: you mentioned that you form is giving an error so what does it say specifically? Just some “general” error?

    Could you also try uploading the file while having browser console open and see if there are any errors (especially time-out or 500 type) reported there?

    Also do you have a CDN such as for example CloudFlare added to the site?

    Kind regards,
    Adam

    Thread Starter anniekjose

    (@anniekjose)

    Hi @wpmudev-support8 ,

    The error I get from the file is :
    An error occurred processing the form. Please try again

    The error I see in the console during the upload is:
    TypeError: function is not a constructor (evaluating ‘new DataTransfer’)

    And after I press “Send message” I get the error:
    Failed to load resource: the server responded with a status of 500 ()

    No, there is no CDN connected to the website.

    Kind regards,
    Anniek

    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @anniekjose,

    Can you check with your host if there’s anything in the server logs during the upload as it’s possible that the upload times out on larger files so increasing execution time could help.

    In addition to that, can you enable WP debug log as it might give us more info on the 500 error.

    You can enable debug log in your wp-config.php file (located in root WP folder) by replacing define(‘WP_DEBUG’, false); with this code:

    
    // Enable WP_DEBUG mode
    define('WP_DEBUG', true);
    
    // Enable Debug logging to the /wp-content/debug.log file
    define('WP_DEBUG_LOG', true);
    
    // Disable display of errors and warnings
    define('WP_DEBUG_DISPLAY', false);
    @ini_set( 'log_errors', 1 );
    @ini_set( 'display_errors', 0 );
    

    Upload the file again until it fails and this should create debug.log file in your wp-content folder that could tell us what is going on.
    Please upload the file to any file sharing service like GDrive or Dropbox and share the download link here so we can check it out.

    Cheers,
    Predrag

    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hello, we haven’t heard back from you in a while so we will close down this ticket, if you have any followup questions feel free to reopen it.

    Cheers,
    Predrag

    Thread Starter anniekjose

    (@anniekjose)

    Hi,

    Sorry, I have been sick, so thats why my response has been a bit late. I will try this today and get back to you.

    Kind regards

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @anniekjose

    I hope you’re fine now!

    We can get back to the case whenever it suits your best so please take your time, get well, and once you’re ready, feel free to update us here and reopen the ticket and we’ll assist you further.

    Best regards,
    Adam

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘File upload error’ is closed to new replies.