Having an issue with uploading files. I have read all the docs and I think I have it set up correctly.
Here is the configuration:
Form Config Code
[file file-374 limit:10mb]
Mail Setting code
Before I placed the below recommended code in the wp-config.php, the form would send the email without error but the file was not attached.
Now since adding the below code code to the wp-config.php…
define( 'WPCF7_UPLOADS_TMP_DIR', 'http://mydomain.org/wp-content/uploads/wpcf7_uploads' );
NOTE: Both /uploads and /wpcf7_uploads directory attributes are set to 777 (writable)
…the message will no longer validate and returns a “Failed to upload file” error.
I am fairly certain I have the config correct but obviously I have missed something or there is some kind of conflict.
Thanks for any help sent my way!
- The topic ‘Failed to upload file – Updated wp-config.php & dir writable???’ is closed to new replies.