I was able to resolve the issue by redirecting the wp_mail() attachment to…
$attachment = $upload['file'];
Related Posts:
- File upload from front-end form (as attachment) not working
- How does WP media uploader create the 3 different sized images, and how can I duplicate it
- simple solution for restricting access to (some) uploads/downloads
- Send attachments via wp_mail from temporary folder
- Saving images from Gravity Forms repeatable File Upload as post attachments [closed]
- How to get all files inserted (but not attached) to a post
- Password protect some uploaded files, so only logged-in users can view them
- How to check if an image attachment exists before uploading
- Add suffix to filename of uploaded images
- Check if image exists before uploading with media_sideload_image()
- Add a YouTube or Vimeo video as a post attachment?
- How can I save the original filename to the database?
- ACF attachment custom field in rest response
- How to solve: An error occured in the upload
- How to send email in wordpress with more than one attachments
- Images not being generated at correct size
- How to manage a big collection of files with wordpress?
- Use the WP media uploader dialog for uploading a form attachment (non-admin). Offering progress and drag and drop feedback
- Email Attachment from Form Submit
- Rename attachment filenames to attachment ID on upload
- What is the way to add additional fields to attachments in 3.5+?
- How to edit attachment with media-upload.php?
- Upload iPhone video clips to blog via native WP app
- How to load attachment in media library for current user?
- How does WordPress decides how many sizes of an image to create?
- Upload and attach to a post multiple image files [closed]
- wp_generate_attachment_metadata for non-images files
- How to add filetype to meta value when using wp_upload_bits?
- Insert attachments from custom uploader into post (regular uploader style)
- PDF Upload from Input Error
- Do custom post type (CPT) attachments/media store the parent post ID?
- Using unzip_file() to get contents of file
- What is wrong with my wp_insert_attachment code?
- Adding attachment custom field metadata to TinyMCE tag
- Updating the attachment from front end doesn’t show the new change
- Set attachment category from file name on upload
- “Could not write file” error in wp_upload_bits function
- _d_improd_ directory in uploads breaking site images
- Check if author or uploader id of the attachment(uploaded) image is match?
- Limit attachment caption characters
- controlling whether upload is attached to post or not
- How to force attachment size for every post
- Attachment Metadata not updated while uploading audio files
- Upload file to front-end form and send as email attachment
- Limit number of uploaded attachments of specific context
- How do I protect my uploads?
- How do I update attachment urls after changing site domain
- How to properly move media files and update data?
- Get Specific Files (Only Specific Extension Type All Files in Loop ) from Media
- 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?
- PNG with transparent background turns black when uploaded and resized
- Trigger JS when featured image upload window is opened in admin
- Get attachment ID of author_meta image – Attachment Metadata
- Modify the array of selected images in media modal
- How can I upload SVG images using the media uploader?
- Delete images uploaded by ‘Subscriber’ role
- Insert Featured image from Feed
- http error when uploading media files
- How to allow specific extensions and file size to wp_mail attachment?
- How to link to the image editor’s Edit Image function?
- HTTP Error when uploading mp4 video file
- 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]
- Add select field to media uploader that adds a class to the image
- WordPress uploads folder path. how it is decided?
- Limit upload file type on one custom post type
- wp_mail not sending attachment
- Filter / Hook to get attachment ID before uploading?
- PDF file upload issue
- Update image via WP REST API
- media_handle_upload() progress bar
- Attach Thumbnail Generated from Video Upload as Featured Image for the Video
- ‘An error occurred in the upload. Please try again later.’ for users with different roles
- HTTP Error after finishing uploading a video that is bigger than 64 MB -> After raising the upload limit manually in the wp-config file
- Set post_parent value for the images uploaded by Add Media button into post
- Using Add from Server to upload by post ID
- Patient portal using wordpress
- Stop image resizing in particular case – is that possible?
- Upload media (image) and set the category
- wp_enqueue_media() and upload_mimes problem
- Upload a custom csv file, read contents and delete that file
- Parsing the post title to the media box page
- Problems with uploading pictures to WordPress
- Problem with inserting multiple images in gallery of each WooCommerce product programmatically
- Create multiple folders in upload media folder
- How to change Route respond To A specific Path?
- Where to store sensitive uploaded file?
- Using WordPress’s add_cap method to Allow Contributors to Upload Media is not Working
- Access featured image URL based on media ID?
- get users nickname uploaded media
- How to configure WordPress to create thumbnails
- My deleted media exists jet
- WordPress shows different upload_max_filesize than php.ini setting
- Theme upload fails
- Cannot upload CSV via REST API: ‘Sorry, not allowed to upload this file type.’ but it does work through the WordPress Dashboard