WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Stop Contact 7 from removing Uploaded files. (6 posts)

  1. Usermaniac
    Member
    Posted 1 year ago #

    Hello, how can i make Contact 7 not to remove the uploaded files on my server even if i upload new ones over the form.. they shall stay there is this possible?

    I deleted:

    // remove upload files foreach ( (array) $wpcf7_contact_form->uploaded_files as $name => $path ) { @unlink( $path ); }

    But after a short time or new upload the file gets deleted is there a solution that the files stay in the folder?

    Thanks

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Do not do this. You are making a security hole.

  3. Usermaniac
    Member
    Posted 1 year ago #

    I need a method.. where users can upload the file via the form.. and it will be stored on the server.. and i get a email with the users email and filename.. so can take the file from the server.

    Is there any method to do this secure?
    Because users will upload files up to 100 mb and i dont want them to be attached as email ;) i want them on the server.

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Currently there is no secure method for that. 100MB is too large. You should do it with other methods than using contact form.

  5. Usermaniac
    Member
    Posted 1 year ago #

    Okay is there a other solution you would recommend?

  6. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Use Dropbox or Google Drive and allow only authorized users to share files. If you allow every user to upload 100MB size files, it's easy to imagine that spammers flood your disk space with large files in a few minutes.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.