Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#9 | support_dwg_files-2900830-9.patch | 926 bytes | joseph.olstad |
|
Comments
Comment #2
joseph.olstadfile_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.
Comment #3
joseph.olstadThere is a patch that might make this configuration easier for you
#2533326-14: Should the list of allowed extensions on file/add be generated from all the current file types?
Comment #4
joseph.olstad#2533326-14: Should the list of allowed extensions on file/add be generated from all the current file types?
Comment #5
Sohal Khatwani CreditAttribution: Sohal Khatwani commentedThanks! I will go through the Readme file.
Comment #6
joseph.olstadIf 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
Comment #7
Sohal Khatwani CreditAttribution: Sohal Khatwani commentedThanks Joseph. Will give it a go. Cheers.
Comment #8
Sohal Khatwani CreditAttribution: Sohal Khatwani commentedHi 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.
Comment #9
joseph.olstadI'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.
Comment #10
joseph.olstadComment #11
Sohal Khatwani CreditAttribution: Sohal Khatwani commentedHi Joseph, Thanks for the patch. It worked perfectly. Cheers.
Comment #12
joseph.olstadIs a dwg an image file? or an application file? what type of file is most common for dwg?
Comment #13
Sohal Khatwani CreditAttribution: Sohal Khatwani commentedHi 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.
Comment #16
joseph.olstadsettled on autocad, see commit.
Comment #17
joseph.olstadComment #18
joseph.olstad