• Resolved hommealone

    (@hommealone)


    Hi Folks,

    File uploads are not making it into the /wp-content/uploads/wpcf7_uploads directory.

    I’m hoping that you can suggest a fix, or some troubleshooting steps that I can try. I’ve looked at a dozen or more threads in this forum about file upload problems, but none have helped.

    I’ve tried giving that folder 777 permissions for troubleshooting, but the server won’t let me set it to anything past 775.

    Also for troubleshooting, I’ve added this line to my functions.php so I can check if the files were uploaded:

    remove_action( 'template_redirect', 'wpcf7_cleanup_upload_files', 20 );

    My form tag looks like this:

    [file* file-resume id:file-resume limit:1mb filetypes:pdf|doc|docx]

    (The test files I’m trying with are pdf files under 200KB.)

    I’ve added the mail tag [file-resume] to the file attachments field in the Mail tab.

    In your documentation for file upload fields, it says that you check for PHP errors. If you find a php error, I would get a verification notification in the form, saying that there was a file upload problem, right? I do not get error messages. I get a message that the form has been submitted successfully. But no files are attached to the email, and no files can be found in the upload directory.

    Any suggestions much appreciated!! Thanks.

    • This topic was modified 1 year ago by hommealone. Reason: additional details
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter hommealone

    (@hommealone)

    Hi Takayuki, thanks for looking!!

    Validation isn’t working properly either, so I suspect there’s something wrong with the files being loaded, or a conflict with another plugin. But I see all of the files in the page source which I find in other websites where the validation works.

    I think that ajax IS working; the page does not reload on submission. One thing that seems wrong: the span.wpcf7-spinner is missing here.

    I’m using the latest version of CF7 – 5.7.5.1

    CF7 related plugins:
    Conditional Fields for Contact Form 7
    CAPTCHA 4WP
    Honeypot for Contact Form 7

    Some forms on the site still use the old “Bootstrap for Contact Form 7” plugin. But this form does not, and the “Bootstrap for Contact Form 7” plugin is NOT enqueued on this page.

    You can see my file upload test form here:

    https://www.astorservices.org/file-upload-test/

    Any suggestions for fixing this much appreciated!

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    See Editing form template

    What content do you have in the Form tab panel?

    Thread Starter hommealone

    (@hommealone)

    Alright, solved, I think. The old “Bootstrap for Contact Form 7” plugin messes things up even when it is dequeued for the page that the form is on. When I disable it, everything works. I’ll just have to bite the bullet and recode all of the many contact forms on this site that used it. (I may be the last person in the world who was still using it!)

    I’ll go ahead and mark this thread as resolved. Thanks again, team CF7 – you guys and the plugin are awesome!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Another file upload problem’ is closed to new replies.