Make WordPress Core

Opened 4 years ago

Last modified 3 years ago

#51992 new defect (bug)

Bug in Media Thumbnail for DWG file

Reported by: mschuessler's profile 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)

Untitled - 1.jpg (59.4 KB) - added by mschuessler 4 years ago.
Screenshots

Download all attachments as: .zip

Change History (9)

@mschuessler
4 years ago

Screenshots

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 @SergeyBiryukov
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 @mschuessler
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_mimes['dwg'] = '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

Last edited 3 years ago by whyisjake (previous) (diff)

This ticket was mentioned in Slack in #core by metalandcoffee. View the logs.


4 years ago

This ticket was mentioned in Slack in #core by audrasjb. View the logs.


3 years ago

#7 @audrasjb
3 years ago

  • Milestone changed from 5.6.1 to 5.6.2

Given 5.6.1, let's move this ticket to 5.6.2 to give it some more time.

#8 @desrosj
3 years ago

  • Milestone changed from 5.6.2 to Future Release

5.6.2 RC is going to be packaged in a few hours. Since this one still requires some investigation and lacks a patch, I'm going to punt to Future Release.

Note: See TracTickets for help on using tickets.