• Resolved manOmedia

    (@manomedia)


    First a big thanks!!! I needed a quick way to have my daughters wedding attendees send us their many photos and so far this is working great!

    Plugin version 1.2.4
    (Send as links is activated as the files are big)
    Apache Version 2.4.39
    PHP Version 7.2.10
    MySQL Version 10.2.12-MariaDB-log

    I notice in the release notes for 1.2.4 (Disable β€˜submit’ button while upload is on progress) was added but that does not seem to fully work.
    At least for me, I can select SEND immediately after dropping files and the mail is sent. Admittedly, sending does not seem to interrupt the upload which completes sometime after I have already received the email. It would probably be appropriate to gray-out and disable the submit button to clearly indicate that the system is not ready.

    Additionally and more important, unless I wait to send until well after the photos have all actually appeared in the ‘wp_dndcf7_uploads’ folder, the sent mail will not include all the links. Note also that the uploads folder is not fully populated although the progress bars have long completed.

    Lastly, it seems that for the file size limit setting, the ‘mb’ attribute is not working. When I tried limit:20mb for example and sent a few files that were all smaller than 50kb I received a size error. When a larger number in kb is specified it works fine.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter manOmedia

    (@manomedia)

    Forgot to add… I am also in favor of some way to have files automatically placed in separate folders but instead of time stamp folder names I would suggest folder names based on the senders email address or perhaps better, time stamped and email address like Joe@gmail.com_20190419_1405.

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hi ManOmedia,

    First thanks for your review and feedback and also for using this plugin.

    I would like to clarify some issues that you’re seing.

    1. Disable Submit Button.
    – Can I get the link of your site so I can check.

    2. Uploads folder issue
    – I’m confused about this can you send me a video or an image that would help.

    3. Limit the size.
    – Currently mb settings not working use only bytes ( use MB to Bytes converter )
    example for (20MB) : limit:20971520

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    I’m closing this thread now.

    Thread Starter manOmedia

    (@manomedia)

    Hi Glen… My apologies for not getting back to you. Things were rather nuts (among other things, a wedding).
    The page in question is password protected.
    Can I message you privately?

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Yes please contact me through this email : glenmongaya@gmail.com

    Thread Starter manOmedia

    (@manomedia)

    Hi Glen,

    I changed the access rights for that page. The link is the same but it now requires a user to be logged in.
    Info being emailed.

    Just for kicks I tried the tests again and have a slightly different result:
    I uploaded 5 pics at about 2MB each.
    As soon as one of the progress bars started growing, indicating that the upload was underway, I clicked send.
    A generic contact form 7 error error was generated; “An error occurred, try again later”.
    I waited a few seconds and tried again, same error.
    Waited again a few seconds and the mail was sent successfully.
    However the mail I received only included data for two of the five uploads.

    Still loving this capability though πŸ™‚
    Thanks…

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello,

    Okay just give me more time to check your site. Please also send a link of your site so I can check. (glenmongaya@gmail.com)

    Sorry for the delayed response I’ve been busy with work lately.

    Regards,
    Glen

    Thread Starter manOmedia

    (@manomedia)

    No problem and no rush… Nothing should change anymore structurally though I did change from Hypercache to CometCache today. I don’t think that should have any impact.

    The link is in the email along with the user ID and password…

    Thanks again…

    Thread Starter manOmedia

    (@manomedia)

    Had an interesting occurrence today. A rather impatient user that wanted to upload several hundred pics, (I think) perhaps dragged the same set of files to the form more than once with two results:
    1) I was told the site froze
    2) On the backend I found there were multiple duplicates like c44, c44-1, c44-2, c44-3, etc

    I looked at the cpanel back end and found the I/O was hitting 100% for a bit.

    As a test I went and uploaded (or tried) 310 photos with sizes ranging from aprox .5MB to 2.5MB, total upload 409MB.
    1) The form page froze after abut 15 seconds meaning all progress bars stopped running
    2) Trying to open the site in a new tab took several minutes, spinning icon.
    3) Looking at the upload folder in the backend via FTP showed only 3 files were uploaded after about 10 minutes.

    cPanel did not show any I/O issues.

    Ohhhh, interesting… After about 15 min about 15 of the progress bars were replaced with:
    “The uploaded file exceeds the maximum upload size of your server.”

    FYI, the shortcode in the contact form is:
    [mfile Upload-Files limit:51048576 max-file:500]

    I thought I had set a high enough limit but, guess not so I changed it to:
    [mfile Upload-Files limit:1000000000 max-file:500]

    I ran the same test with the same batch of photos and had similar results:
    1) The form page quickly froze meaning all progress bars stopped running
    2) However, opening the site in a new tab was OK.
    3) Looking at the upload folder in the backend via FTP showed only 2 files were uploaded after about 5 minutes.

    After about 10 min the upload form progress bars for about 22 items were replaced with the same maximum upload size error.
    Looking again at the upload folder in the backend showed 18 files were uploaded.

    Checking the cpanel again and I/O Usage was at 100%
    and physical Memory Usage was at 98.65%.

    Some minutes later more of the progress bars had been replaced with the error.
    Only two progress bars indicated 100%

    As a reference, uploading the same 310 photos via FTP takes about 5 minutes and does not cause any cpanel I/O or memory errors.

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello,
    Uploading hundreds of photos/files via browser is not advisable. Your server and browser cannot handle substantial post request, and it is very likely your server may crash.

    Even if you increase the settings on my plugin it will still depend on your server and please take note there is a difference uploading via 3rd party file transfer (FTP) and browser upload.

    Why don’t you try increasing your server PHP Configuration settings and let me know if works for you.

    Recommendation:
    Upload files/photos per batch (10-20 files per batch) to avoid overwhelming your server.

    Regards,
    Glen

    Thread Starter manOmedia

    (@manomedia)

    Thanks Glen,

    I do realize FTP access is inherently different. I noted it just to say that basic I/O was not an issue.

    I have looked at a few things and indeed, what I was pushing was way way over the top however, even when well under the thresholds I am aware of, the same issues occur.
    As I understand it, the key php.ini settings are post_max_size, upload_max_filesize and memory_limit.
    The current settings are:
    post_max_size = 128M
    upload_max_filesize = 128M
    memory_limit = 512M
    I suppose max_execution_time and max_input_time could also be a factor. The current settings are:
    max_execution_time = 30
    max_input_time = 60
    However, I would say that when the form freezes it occurs after about 10 seconds so I presume neither of these is being overrun.

    I dropped the file count to 50 with a combined size of 71.6MB (75,138,072 bytes), the form freezes.
    I dropped the file count to 25, combined size of 35MB and the form did not freeze however, something was still off in the background. All the progress bars completed very quickly but it took several minutes before anything appeared in the upload folder and about 10 minutes elapsed before I could successfully send the email.
    To help reduce front-end confusion I changed the Contact 7 error message to: “Your upload is still being processed. Please wait a few minutes and try to resend your message again.

    Still love the plugin and presume the issues are server side and only indirectly associated to the plugin but it would be nice to know the actual limits and what the delays are.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Observations: File Size & Link attachments’ is closed to new replies.