Does anyone know if file entity supports the .dwg file type format? I could not see it in the mimetype list. These are AUTOCAD Drawings.

Thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Sohal Khatwani created an issue. See original summary.

joseph.olstad’s picture

Version: 7.x-2.0-beta3 » 7.x-2.x-dev

file_entity supports all file formats that are configured for it. Check the documentation/readme. Also, usually your web server configuration to be configured to accept .dwg files as well.
this is documented somewhere I'm sure.

joseph.olstad’s picture

joseph.olstad’s picture

Sohal Khatwani’s picture

Thanks! I will go through the Readme file.

joseph.olstad’s picture

If necessary, you might want to try out this patch #2533326-14: Should the list of allowed extensions on file/add be generated from all the current file types?
OR
7.x-3.x dev branch which has the aforementioned patch

Sohal Khatwani’s picture

Thanks Joseph. Will give it a go. Cheers.

Sohal Khatwani’s picture

Hi Joseph,

I tried adding the new file type and had no success. In the version I have of file entity 7.2.3 I don't see a readme file even if I download it from the source. I found some instructions here from Dave here - https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func.... However, I am not sure if this is what I need to do. I can upload the .dwg file type to the server but file entity still says it is not recognised. Any ideas? We are using PHP 5.6x, Drupla 7.56 and a Windows IIS 8.5 server.

joseph.olstad’s picture

I've never heard of or used dwg.

try the aforementioned patch, or try file_entity 7.x-3.x latest dev

AND you will probably also have to either use the following patch (attached) and you may have to modify it, see the code comments I put into the patch.

joseph.olstad’s picture

Status: Active » Needs review
Sohal Khatwani’s picture

Hi Joseph, Thanks for the patch. It worked perfectly. Cheers.

joseph.olstad’s picture

Is a dwg an image file? or an application file? what type of file is most common for dwg?

Sohal Khatwani’s picture

Hi Joseph. Honestly we were setting it up for a clients site so not sure what is more widely used. We went with application/acad as the type. We tried the image type and it did recognise it as well but was not showing a preview on the actual page. Thanks again for your help.

  • joseph.olstad authored 6f53716 on 7.x-2.x
    Issue #2900830 by joseph.olstad: Does file entity support .dwg files?
    

  • joseph.olstad authored 6f53716 on 7.x-3.x
    Issue #2900830 by joseph.olstad: Does file entity support .dwg files?
    
joseph.olstad’s picture

Status: Needs review » Fixed

settled on autocad, see commit.

joseph.olstad’s picture

Title: Does file entity support .dwg files? » file entity support for .dwg autocad files
joseph.olstad’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.