Viewing 10 replies - 1 through 10 (of 10 total)
  • You need to provide more information for me to be able to help you.
    What file size and type are you uploading?
    Did you try smaller files under 1 meg?
    Is there an error? What is the error?

    Some servers will and some will not work with 777, some require 755
    Did you set it to 777 yourself? Did you try 755?

    Read everything on this help page:
    https://www.fastsecurecontactform.com/attachment-fields

    Thread Starter seozones

    (@seozones)

    Ok, I downloaded the plugin Contact Form to DB Extension so that files can be uploaded to the server, then retrieved via the dashboard. However, I would like to grab the file that is on the server. Where is the default location on the server that the plugin places each file?

    Please answer my questions when I try to help you. That way we can be on the same page.

    Thread Starter seozones

    (@seozones)

    Thanks mike for your help. Okay, here are those answers:

    1) server is set to either 777, 757 and 755 and it uploads to the server just fine now using the additional plugin Contact Form to DB Extension which works alongside your plugin.

    2) I can attach files that are under 1 meg and see the file in the Database section under plugin Contact Form to DB Extension which is a clickable link. However, larger files don’t display as link.

    3) There was no error that displayed

    Question still unsolved is: where on the server do these files get uploaded to. I can then code my page to grab that file via a php script. In the database, the path to the file looks encrypted.

    The uploaded attachments are automatically deleted from the temporary
    wp-content/plugins/si-contact-form/attachments folder as soon as the email is sent. This is done for ease of management and security. The files could contain sensitive information and could be accessed publicly.

    I think you can retrieve the attachments from the database.

    This is where you get support for that plugin
    https://www.ads-software.com/tags/contact-form-7-to-database-extension
    https://cfdbplugin.com/

    Do not expect much success with any files over about 2M

    Sadly, with HTTP POST, it is normal for there to be no graceful error when the upload fails, expect a white screen timeout when this happens.

    Form POST reliability with large files is very limited because of the user’s upload speed is usually the slowest link. Time is one of the factors that causes the failure of large file uploading. Just because your server has large ‘upload_max_filesize’ and ‘post_max_size’ settings does not really mean you can expect success with large files.

    The biggest obstacle to HTTP POST uploads is the fact that most broadband internet upload bandwidth is usually 10 times lower than the download bandwidth. This will easily cause server timeouts when trying to upload files bigger than 1-2M by HTTP POST. For this very reason, if you need to upload files bigger than 1-2M, you really need to use a FTP server or a large file hosting service.

    If you’re having problems uploading large files but small files go through fine, here are some things to try:

    – On the contact form edit settings page, make sure you’ve set “Attached files maximum size allowed” to an acceptable value. Settings 1mb or less will usually have best results. examples: 500kb, 800kb, 1mb, 1.5mb, 2mb. This is why the default setting is 1mb. Click ‘help’ next to this setting to see what your server reports it is capable of: “Your server will not allow uploading files larger than than: X”. The value for X can vary based on your PHP settings for upload_max_filesize and post_max_size.
    – In php.ini, be sure you’ve set the the upload_max_filesize and post_max_size to be large enough to handle your upload.
    – In your httpd.conf (if you’re using apache), check that the LimitRequestBody directive isn’t set too low (it’s optional, so it may not be there at all).

    The ultimate solution for large files is to have your users send you large files with a large file hosting service.

    Thread Starter seozones

    (@seozones)

    Okay, thanks Mike. Also, I did notice that smaller files are there in the database but not larger files such as a file that I recently upload which was a 2.9 MB pdf file. Any reason why that downloadable link would not show up in the db?

    You have to ask Michael Simpson(the database plugin author) about the 2.9M file not showing.
    This is where you get support for that plugin
    https://www.ads-software.com/tags/contact-form-7-to-database-extension
    https://cfdbplugin.com/

    m t

    (@maureenton)

    I’m having an issue uploading to the server!
    The file doesn’t show up, but can email ok as an attachment.

    The default upload folder is wp-content/uploads/ and it autmatically generated a wpcf7_uploads folder within that when I submitted my form- so I know it’s pointing to the right location.

    However, no file shows up (tried under 300k file).

    When I added the tag to the email attachment field- it sent it in the email- but still not in the upload folder.

    m t

    (@maureenton)

    Nevermind, followed pmagony’s fix from here: https://www.ads-software.com/support/topic/plugin-contact-form-7-leave-file-upload-on-server?replies=4

    and that worked! now I the files stay in the upload folder (only doing so since my form page is password protected, otherwise, probably not smart).

    The links work on contact form 7 to Database, where are these files saved at?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: Fast Secure Contact Form] File not uploading to server’ is closed to new replies.