• After updating to version 3.14.0 from 3.9.2, the form will no longer upload PDF files. The progress bar shows up, but is stuck at 0%. It works fine for jpg and png. PDF is listed as an allowed file type in ACF for this field.

    Also, we also have a custom function doing data manipulation in the backend using the frontend_admin/save_user hook. Because we have 2 different Frontend Admin forms on the same page, we check for the form ID in the function:

    if ($form[‘id’] != ‘2492’) : return;? ?
    endif;

    Unfortunately, after the update, this always returns false even for form 2492, so the rest of the function never gets executed. Has this been changed?

    Thanks in advance!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Shabti Kaplan

    (@shabti)

    Hi,

    Thank you for reporting this issue, we will fix this as soon as we can.

    Regarding the form id, you should use $form[‘ID’] as that is a reference to the actual form ID in the database as opposed to ‘id’ which refers to the unique key used to export and import the forms

    Thread Starter farberama

    (@farberama)

    Thank you for your quick response. Using $form[‘ID’] instead of $form[‘id’] did the trick!

    Regarding the uploading of PDFs, do you know a timeframe? This is on a live website and our client is asking when it will be fixed.

    Thanks!

    Plugin Author Shabti Kaplan

    (@shabti)

    Great to hear that.

    Please try this version: https://downloads.www.ads-software.com/plugin/acf-frontend-form-element.3.15.0.zip

    It fixes the pdf uploads

    Thread Starter farberama

    (@farberama)

    Unfortunately, it still doesn’t work. It doesn’t generate any errors. It just sits at 0%.

    Thread Starter farberama

    (@farberama)

    I noticed there was a new update available, 3.15.1. I updated the plugin and it still will not upload pdf files.

    I did some experimenting with the form, and I enabled WP Media Library under Permissions. With this set, it will upload pdf files, however, only if you’re an admin. If you’re not an admin, it doesn’t use the media library.

    Plugin Author Shabti Kaplan

    (@shabti)

    This is one of the things that we actually fixed in this update. do you have a cache solution that needs purging?

    Thread Starter farberama

    (@farberama)

    The form is being used from within My Account (woocommerce), so the page wouldn’t be cached. In any case, I went ahead and disabled WP Rocket, and it still will not upload pdf files or use the media library if you’re not an admin.

    Plugin Author Shabti Kaplan

    (@shabti)

    Using the ap media library is a matter of “capabilities”. We will try and replicate your use case more.

    This field is created in ACF and pulled in through our “ACF Fields” field type?

    Thread Starter farberama

    (@farberama)

    Yes, this is an acf field using the ACF Fields field type.

    Regarding using the media library, I was just checking to see if it worked with PDFs. I really don’t want to use it in this case.

    Thread Starter farberama

    (@farberama)

    Anything new on this? I’ve tried the most recent version, but it still doesn’t work. My client was getting angry, so I had to revert back to version 3.9.2 which works properly.

    Plugin Author Shabti Kaplan

    (@shabti)

    @farberama We did address this bug. Are you perhaps using a cache solution that is holding onto a previous version of the js?

    Thread Starter farberama

    (@farberama)

    That’s not it. As I said previously, the form is on a Woocommerce My Account endpoint page and wouldn’t be cached. But, just to be safe, I disabled WP Rocket and all but the few plugins that are necessary for the site to run properly, and that had no effect.

    Plus, it happened on the live site (before switching back to the old version) as well as the dev site.

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