• How can I disable file deleting in the server?

    I want the users to be able to upload files, up to 100MB but offcourse that kind of file can’t be recieved via e-mail.

    How can I keep a copy in the server and recieve a link to the file instead or something like that?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • i want to do the same!
    how??

    I would NEVER recommend doing it. Could be very dangerous in several ways.
    But if you must, look in controller.php. You will I believe need to take out (in two places) the section like:

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

    AT YOUR OWN RISK!

    Thread Starter anabelle

    (@anabelle)

    No safe way of doing it?

    No safe way? You mean to allow unlimited uploading of files?

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    It’s dangerous as webjunk wrote.

    You are allowing anonymous Uploads.
    Unless you do some extensive coding, you are allowing unlimited uploads. THink what a script could do.
    The file can be called anything but still have dangerous code it in.
    This is just a start. I don’t like the idea of even files being sent by email but understand it can have uses. But leaving files from unknown sources on your website you have spent so much time creating???

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Contact Form 7] disable file deleting in the server?’ is closed to new replies.