Keyword

Allowing kml files for Attachments upload

More
11 years 7 months ago #103359 by Ryan
Hi all,

We have the requirement to allow people to upload .kml files to the attachments area.
unfortunately, these currently get the extension .txt added to them.

We tried to add the allowed mime type to the upload class, and mime types files, but to no avail.

Files: administrator > components > com_k2 > lib > class.upload.php : line 2317
after $this->allowed = array(
added 'application/vnd.google-earth.kml+xml',

then under $this->mime_types = array(
added: 'kml' => 'application/vnd.google-earth.kml+xml',

Do these need to be added to
Files: administrator > components > com_k2 > lib > elfinder :
mime.types & elFinderVolumeDriver.class.php

Anyone who can solve this is a legend and it's greatly appreciated.

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #103360 by Lefteris
Replied by Lefteris on topic Re: Allowing kml files for Attachments upload
Hi. Try to update your PHP version so the mime detection is better. You probably get the txt extension because the server cannot detect the mime correctly.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #103361 by Ryan
Thanks Lefteris, We;re running: 5.3.10-1ubuntu3.2, I thought that would be ok, but I'll get him to check the Mime type is recognized by apache.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #163597 by Odin Mayland
Replied by Odin Mayland on topic Re: Allowing kml files for Attachments upload
Ryan,

Did you ever resolve this issue?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum