Make WordPress Core

Opened 6 years ago

Last modified 6 years ago

#51992 new defect (bug)

Bug in Media Thumbnail for DWG file

Reported by: mschuessler Owned by:
Priority: normal Milestone: Future Release
Component: Media Version: 5.6
Severity: major Keywords: needs-patch
Cc: Focuses:

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 6 years ago.
Screenshots

Download all attachments as: .zip

Change History (9)

@mschuessler
6 years ago

Screenshots

This ticket was mentioned in Slack in #core-media by hellofromtonya. View the logs.


6 years ago

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


6 years ago

#3 in reply to: ↑ description @SergeyBiryukov
6 years ago

  • Milestone Awaiting Review5.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
6 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 6 years ago by whyisjake (previous) (diff)

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


6 years ago

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


6 years ago

#7 @audrasjb
6 years ago

  • Milestone 5.6.15.6.2

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

#8 @desrosj
6 years ago

  • Milestone 5.6.2Future 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.