• Hello!

    I am so happy that I found Save Contact Form 7, however, I am having an issue. Our form allows a person to upload a file. When I go to the list of form entries, I see my test entry and I see that there is a file attachment. When I click to VIEW the attachment in the browser, I see the following:

    “Object not found!

    The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

    If you think this is a server error, please contact the webmaster.

    Error 404”

    If I select to download the attachment instead, the download screen pops up but when I press the button to download I see the error “Failed – File not found”.

    I know that the Contact Form 7 says that it saves attachments to a temporary directory, mails it, then deletes it all within a minute or so, so my assumption is that the Save Contact Form 7 plugin is unable to present the file because it has already been deleted?

    Please assist.

    Thank you.

    Amy

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hipgloss

    (@hipgloss)

    UPDATE: I was able to change the image storage to a constant path on the site with the following code in wp-config.

    define( ‘WPCF7_UPLOADS_TMP_DIR’, ‘/your/file/path’ );

    I am now able to ‘view’ the attachment but I am unable to download the attachment. Instead of the PNG that I uploaded, it is downloading something called Attn.gif which is a yellow triangle with an exclamation mark in it.

    • This reply was modified 8 years, 1 month ago by hipgloss.

    remove define( ‘WPCF7_UPLOADS_TMP_DIR’, ‘/your/file/path’ );

    and add

    /*Temporary Files NOT Deleted */
    define (‘wpcf7_cleanup_upload_files’, false);

    This will allow you to download your files

    hi
    i have this problem too. and add this code to wp-config file:
    define (‘wpcf7_cleanup_upload_files’, false);
    but also i have this issue.Our form allows a person to upload a file. When I go to the list of form entries, I see my test entry and I see that there is a file attachment. When I click to VIEW the attachment in the browser, I see the following:
    “Object not found!
    just one uploaded file work true
    my wordpress version is 4.6.3
    please help me.
    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘File attachment: No file found’ is closed to new replies.