Opened 4 years ago
Last modified 4 years ago
#51992 new defect (bug)
Bug in Media Thumbnail for DWG file
Reported by: | mschuessler | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | major | Version: | 5.6 |
Component: | Media | Keywords: | needs-patch |
Focuses: | Cc: |
Description
Hi,
since today's update the file name of DWG files are not shown anymore unlike the PDF files. I have allowed DWG to be uploaded. Can you help? Thanks
Attachments (1)
Change History (9)
This ticket was mentioned in Slack in #core-media by hellofromtonya. View the logs.
4 years ago
This ticket was mentioned in Slack in #core by lukecarbis. View the logs.
4 years ago
#3
in reply to:
↑ description
@
4 years ago
- Milestone changed from Awaiting Review to 5.6.1
Replying to mschuessler:
since today's update the file name of DWG files are not shown anymore unlike the PDF files. I have allowed DWG to be uploaded.
Hi there, welcome to WordPress Trac! Thanks for the report.
Could you share the code you're using to enable DWG support? Looking at the Media Library templates, WP is supposed to display filenames in Grid mode for non-image files that don't have a thumbnail, but seems to think that DWG should have one, even though there is currently no support for that in core.
At a glance, this appears to be a regression in [49012] / #49655. Moving to the milestone for investigation.
#4
@
4 years ago
Hi and thanks for the reply,
I have a code and a plugin.
Code:
function custom_upload_mimes ( $existing_mimes=array() ) {
$existing_mimesdwg? = 'image/vnd.dwg';
return $existing_mimes;
}
add_filter('upload_mimes', 'custom_upload_mimes');
Plugin: WP Extra File Types | File Upload Types by WPForms
Best regards
Screenshots