Since i was also looking for some sort of keeping submitted images, i found this simple plugin, which gave me a bit insight:
https://wordpress.org/plugins/store-file-uploads-for-contact-form-7/
Also if you read a bit on the mentioned “file-uploading-and-attachment” topic in cf7, you should get the point:
For security reasons, specifying files outside of the wp-content
directory for email attachments is not allowed, so place the files in
the wp-content or its subdirectory.
I think if you stay within the wp-content dir, your copy-func may have its content.
Related Posts:
- Can’t upload media, permissions are correct
- Media not actually deleted on disk when click “Permanent Delete”
- Contact Form 7 – process form using a PHP script, instead of mailing [closed]
- What permissions does wp-content/uploads need?
- WordPress monthly upload directory owner set to root
- Moving Media Library
- Maximum upload size changes in php.ini ignored – How to remove upload size limit?
- What error logs can I check to see why plugin updates are failing?
- The uploaded file exceeds the upload_max_filesize directive in php.ini
- Hide images from anonymous user?
- Saving file to disk receiving fopen error
- User permissions to upload images
- wordpress upload permission on nginx & ubuntu
- How do I force WP to set upload directory permissions correctly?
- How to upload prc file type?
- Unable to upload anything to WordPress site
- I migrated WPMU site: Unable to create directory uploads/… Desperate for help!
- Used Duplicator to transfer a site. Now my media uploads aren’t working
- Problem uploading files, after changing domain name
- Basic File/Post restriction plugin
- Cannot upload themes. Error: “The uploaded file could not be moved to /var/www/wp-uploads/localhost/2011/10.”
- Display Image Upload from Contact Form 7 on Redirect Page [closed]
- How to generate thumbnails when needed only?
- Media files exist in upload folder but not showing up
- Set limit to media upload?
- Save camera info as metadata on image upload?
- How to upload SVG in WordPress 4.9.8?
- Use a separate custom table (not posts) to handle file upload data
- PNG with transparent background turns black when uploaded and resized
- WP 3.3 > Still no option to enable automatic image overwrites?
- Custom upload directory per CPT; when removed, file not deleted
- Modify featured image path to Amazon S3
- How to set an upload directory for each media type?
- How to get all files inserted (but not attached) to a post
- Trigger JS when featured image upload window is opened in admin
- uploading files to the uploads folder via ftp
- Delete images uploaded by ‘Subscriber’ role
- Remove upload_files capability from a role but allow role to manage an avatar image
- 3.5 media manager add CSS / JS to new ‘tab’ iframe content
- Insert Featured image from Feed
- http error when uploading media files
- How can I upload a csv file into WordPress?
- How to link to the image editor’s Edit Image function?
- Change the size of the image preview on the media edit page
- Saving WordPress generated thumbnails in a subdirectory
- Whole bunch of errors on WP website – media upload, edit slugs, edit screen not working [closed]
- Retroactively place uploaded media into -month, -year based folders?
- Conditional add_filter for upload directory?
- Need to download uploaded binary file
- Insert Image automatically when upload finishes wordpress media uploader
- How do I modify the url of uploaded media content?
- WordPress “HTTP error.” when uploading Media – IIS
- WordPress uploads folder path. how it is decided?
- Limit upload file type on one custom post type
- How do I insert an already uploaded video file into my Media Library?
- Split up files from one big folder to multiple folders in uploads after migration
- Display attachments by the ID of the post being edited in the wp.media frame (frontend)
- Media Gallery Upload photo incorrect way like glitch
- WordPress uploads autocreate folder every month
- Enabling users to upload files
- Error uploading images (but the images are at the server!)
- Is it possible to use media_sideload_image to upload local files?
- How to switch to year/month directory structure format from a single folder
- Restrict authors to seeing ONLY their media files
- How to edit attachment with media-upload.php?
- Uploads going to the root of wp-content/uploads
- Uploaded image with non-english characters is named incorrectly in upload folder
- Can’t upload images (incorrect “file exceeds upload_max_filesize” error)
- Anybody knows if i could upload a leaflet or openlayers3 map to wordpress webpage?
- “Trying to upload files larger than” error will not go away
- How to add filetype to meta value when using wp_upload_bits?
- Cropping thumbnails to specific dimensions on front end post
- Double slash in upload URLs
- Unable to upload new file as a product
- Limit users to specific uploads
- Make inline uploader (plupload) on options page upload to a specific folder
- WordPress blog with a custom made theme hosted on heroku
- media file uploading
- What is wrong with my wp_insert_attachment code?
- Editor User Role can’t see other users media
- How to allow .ged file uploads
- Set attachment category from file name on upload
- HTTP Error WordPress on IIS uploading image
- What folder to place Large Video files?
- WordPress Upload Speed
- _d_improd_ directory in uploads breaking site images
- Drag and Drop Media Not Working in Windows 10 Edge Browser
- Exclude some photos in media library
- Failed to load resource at admin screen
- Upload more than one media files with a post
- Upload file to front-end form and send as email attachment
- uploading photos
- Multi site and media uploader
- How to handle image resize in media_handle_sideload?
- Image uploaded in media library, can only see it when I using the WP Edit Image feature. 404 when trying to view in browser
- Single file upload
- Add frontend editor with media buttons for Visitors and display only their media
- Can’t upload files 1MB+ [closed]
- Create media folder upon post publish?
- WordPress directories not writable after PHP version upgrade