• Resolved jahry

    (@jahry)


    I am attempting to create a basic form for uploading 20 files. It sometimes works perfectly, but occasionally, when I upload 20 files with names ranging from 01 to 20, the form receives and saves the files like this: 01, 02, 03, 04, 05, 06, 07, 08, 09, 10 (from 01 to 10, it’s correct). However, between 11 and 20, it fails to save the files properly. For instance, it doesn’t save the file named “16” and instead stores it as “10” again. This issue occurs up to 5 times in a single submission. So, the resulting file list might look like this: 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 10, 13, 14, 10, 10, 10, 18, 19, 10.

    Can anyone provide insights or assistance in resolving this problem? Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @jahry

    I hope you’re well today!

    Let me ask some additional questions first:

    1. Are you using one upload field on the form, set to “Multiple” type (allowing upload of multiple files) or are you actually using multiple separate “single upload” type fields?

    2. In fact, Forminator is supposed to change file names upon upload so are you using any additional custom code on site related to uploads (or even specifically to maintaining original file names)? Or are you referring to the part of the file name that is supposed to be the original file name?

    What I mean is that if I upload e.g. “test-image.png” file the file name would become “XXXXXXXXX-test-image.png” where the XXXXXX part is a “hash” consisting of letters an numbers and the “test-image.png” is the original file names. So which part of those file names the issue happens to?

    3. Are you original files actually named that way, with numbers, like 01, 02 and so on? Or is it that you expect Forminator to save them under such “numbered” names?

    Let us know, please, so we could have a better picture of this case and we’ll look into it then.

    Best regards,
    Adam

    Thread Starter jahry

    (@jahry)

    Hello,

    Thank you for providing additional information. Let me address your points:

    1. I am using only one “multiple” type upload field.
    2. Yes, Forminator does save files with a hash in the file name (I apologize for not mentioning it earlier). I am not using any custom code related to file uploads, so the original file names are not maintained.
    3. The original files are indeed named as 01 to 20.

    Additionally, it’s worth mentioning that I initially had the form on my home web server (NAS Synology), and everything worked fine. Now, when it’s hosted on a different server, the issue occurs. There might be a limitation on their end.

    I am using the AJAX file upload method. As an example, I recently uploaded 20 small photos with file names like 01.jpg, 02.jpg, and so on, but the uploaded files have names like:

    ynN3vRvzuvJT-10.jpg YEEV0NyT0o0L-19.jpg Ml4ZlSHQPxPC-10.jpg 95BnxzabJUz8-17.jpg 2nW94PnRrCvd-10.jpg BW6i7cEsGimr-15.jpg UrRfJDDW4Zru-10.jpg m46KPG32GrJ9-13.jpg ZHAW1TREL2tH-12.jpg 1mw9V1xeHvsz-11.jpg f8Cm3NkyrDDZ-10.jpg xhtEq3CYIGUW-9.jpg OsjsgtnBhNQb-8.jpg KZz6e16RBeIf-7.jpg 7gckHXN3l3ZA-6.jpg lmv01cYmwtfk-5.jpg kafcazWKzGIL-4.jpg IzK7P3gdyhsx-3.jpg yPad0FfGh8Y8-2.jpg zSk9GdZ1igTH-1.jpg

    Plugin Support Zafer – WPMU DEV Support

    (@wpmudevsupport15)

    Hi @jahry,

    I hope you are doing well today!

    From the filenames list you’ve provided, it appears there’s an issue with 10.jpg file repetition. Interestingly, even the hashes before the filename are different which means these are not just repeated entries, but truly separate files.

    There is a possibility that this behaviour might be connected to certain server settings or limits. Here are a few suggestions to help investigate and resolve this issue:

    1. Try changing the AJAX file upload method to ‘On form submission’ in Forminator settings and check if you still encounter the same issue with file uploads.
    2. Contact your server admin or hosting provider to understand if any upload-related restrictions or unique settings are applied on their end. Mention the specific issue to them, they might be able to provide a more server-specific guidance.
    3. Check PHP error logs on your server. These logs can provide useful information if some server-side error is happening during file upload.
    4. Ensure the permissions of the upload directory are correctly set and the directory is writeable from PHP.
    5. Try debugging the issue by deactivating other plugins one-by-one and check if there’s a conflict between Forminator and another plugin.

    This should give you a clearer idea of what might be causing the issue. Feel free to get back if you need further assistance.

    Kind regards,
    Zafer

    Thread Starter jahry

    (@jahry)

    Dear Zafer,

    Thank you for your assistance. I followed your suggestion and changed the file upload method to “On form submission.” With this change, approximately 4 out of 5 form submissions work correctly, but occasionally, only 10 files are sent (even though 20 were actually uploaded). I have also reached out to the server administrator for guidance, as our hosting is likely managed by the StackCP franchise.

    I sincerely appreciate your advice, and I’ll keep you updated on any developments. If needed, I’ll certainly reach out to you again for further assistance.

    Thank you once more for your help.

    Best regards, Jahry

    Plugin Support Laura – WPMU DEV Support

    (@wpmudevsupport3)

    Hi @jahry,

    Hope this message finds you well.

    Thanks for the update we really appreciate it.

    I sincerely appreciate your advice, and I’ll keep you updated on any developments. If needed, I’ll certainly reach out to you again for further assistance.

    Kindly let us know if we can mark this issue as solved.

    Best regards,
    Laura

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @jahry ,

    We haven’t heard from you for over a week now, so it looks like you don’t have more questions for us.

    Feel free to re-open this topic if needed.

    Kind regards
    Kasia

    Thread Starter jahry

    (@jahry)


    Hello,

    I’m sorry to report that my issue persists. Whenever I migrate from my NAS (where it works) to web hosting, it stops working. Similarly, when I migrate from web hosting to NAS, it starts functioning correctly. I have everything configured the same way in the “site health,” and the web hosting support team mentioned that they don’t see any issues or limitations on their end, and the logs appear to be fine. They suggested I reach out to the Forminator plugin support directly.

    Unfortunately, I find myself in a deadlock situation and I’m unsure about the next steps to take.

    Best regards,
    Jahry

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @jahry

    Thank you for response and additional information!

    In general, this situation isn’t something common and we didn’t have similar reports earlier so that’s new to us either and that’s why we weren’t able to give you a direct solution right away. I apologize for that but I also hope for understanding – such issues, especially if we can’t replicate them on our end, are quite difficult to diagnose.

    However, there’s one thing that caught my attention.

    As you mentioned: “our hosting is likely managed by the StackCP franchise.“. That’s perfectly fine but as far as I remember StackCP may also have quite an “aggressive” caching policy and if cache – especially object cache – is active (especially if there’s no integration with WordPress made via some special plugin) it can intefere sometimes. There may also be some sort of image offload and depending on form settings it may also be related.

    So something additional to check then:

    1. if there is any server side cache active – especially object cache – see if it could be temporarily disabled and if that changes anything

    2. in upload field settings, do you have option set to add images to media library? If yes, try disabling it for testing and see if that changes anything

    Kind regards,
    Adam

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘More that 10 files upload issue’ is closed to new replies.