• Resolved matlino

    (@matlino)


    I have a form only with an upload field (type multiple).

    When I upload 4 pictures which together have a size of around 12 MB, the form takes around 100 seconds to submit.

    When I upload the same 4 pictures with the AJAX upload method I need to wait while pictures are uploaded asynchronously and only then I can submit the form. But after I submit it, it again takes around 100 seconds until submission is finished.

    Why form submission with the AJAX upload method takes the same amount of time? I would expect images to be already uploaded when I hit the submit button. Am I missing something?

    Thanks for help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hi there @matlino

    Indeed, I just tested the “Ajax” upload method on my test site, and I don’t see any speed difference either compared to the “On Submission” method.

    With the Ajax method, the files should be uploaded to a temp folder, then simply moved from there when the form is submitted. But in my test just now, it still takes a good 30 secs to upload 4 images totaling about 7.5Mb

    https://monosnap.com/file/ObwooCmjdz3avMkHD150hLWeCcIiAo

    I’ve notified the developers of this so they can investigate and we’ll update you here once we have more information for you.

    Cheers!
    Patrick

    Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hi again @matlino

    I think I just figured out the issue. ??

    I tested again with the option to “Show files in media library” disabled in the File Upload field settings, and those same multiple images I tested with earlier submit instantly:

    https://monosnap.com/file/4bOiOazjX19LR9vlmgFtUdx2RKSZHO

    Can you please check if that option is enabled in your form and, if so, test with that option disabled.

    If your form then submits near instantly as well (as I suspect it will(, then that would confirm that the delay in submission is caused by the WordPress media uploaded, which does take some time to upload and “crunch” image files.

    Cheers!
    Patrick

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