• Resolved aofmarketing

    (@aofmarketing)


    Hello all. My File uploader isn’t working. In the form I have:

    <p>Please upload 3-5 images of product<span style="color:red">*</span>.</p>
    [file* productpictures filetypes:gif|png|jpg|jpeg]
    [file* productpictures2 filetypes:gif|png|jpg|jpeg]
    [file* productpictures3 filetypes:gif|png|jpg|jpeg]
    [file productpictures4 filetypes:gif|png|jpg|jpeg]
    [file productpictures5 filetypes:gif|png|jpg|jpeg]

    And in my mail I have:
    File attachments: [productpictures][productpictures2][productpictures3][productpictures4][productpictures5]

    But I’m getting the error message when I upload three files and hit submit: “Validation errors occurred. Please confirm the fields and submit it again.” Under my file upload buttons there is in red: Failed to upload file.

    And I have no idea why. Any help would be appreciated!

    https://ww.wp.xz.cn/plugins/contact-form-7/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    The error indicates that it failed to move the uploaded files to the temporary directory. Make sure the temporary directory exists and has appropriate permission settings.

    See File Uploading and Attachment for more details.

    Thread Starter aofmarketing

    (@aofmarketing)

    Thanks for your input Takayuki, because of it I have followed the breadcrumbs to my writing permissions. I recently migrated to a new host and they must have been changed. I can’t upload any images in my admin either! I didn’t realize the two must be connected. When I figure out the writing permissions issue I will post a solution. Unless anyone has any input on how to update those?

    Thread Starter aofmarketing

    (@aofmarketing)

    I had to reset my file permissions. I recently migrated to WP Engine so I’m not sure how to do it otherwise, but I went into WP Engine > General > Dynamic Page & Database Cache Control > Reset File Permissions.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘File upload not working’ is closed to new replies.