Allowed file types, not accepting new MIME types

Phoca Download - download manager
ths
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 24 Mar 2011, 17:58

Allowed file types, not accepting new MIME types

Post by ths »

Hello

I have been trying to add more file types in Options, but so far have no luck in making it work. Below is a copy of the Allowed file types field i have currently:

Code: Select all

{pdf=application/pdf}
{ppt=application/vnd.ms-powerpoint}
{pptx=application/vnd.openxmlformats-officedocument.presentationml.presentation}
{doc=application/msword}
{docx=application/vnd.openxmlformats-officedocument.wordprocessingml.document}
{xls=application/vnd.ms-excel}
{xlsx=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet}
{gz=application/x-gzip}
{tar=application/x-tar}
{tgz=application/x-tar}
{zip=application/x-zip}
{rar=application/x-rar}
{bmp=image/bmp}
{gif=image/gif}
{jpeg=image/jpeg}
{jpg=image/jpeg}
{jpe=image/jpeg}
{png=image/png}
{tiff=image/tiff}
{tif=image/tiff}
{txt=text/plain}
{mpeg=video/mpeg}
{mpg=video/mpeg}
{mpe=video/mpeg}
{qt=video/quicktime}
{mov=video/quicktime}
{avi=video/x-msvideo}
{flv=video/x-flv}
As you can see i have tried to add the MIME types of the new Office documents, and RAR files. I have no problems uploading files with file endings that where already there in the original install. I can not upload any of the file types that i have added, not even RAR, and i found that line posted here on the forum with a confirmation that it worked.

I also tried {docx=application/msword}, {docx=application/word} and similar without any luck. The MIME types currently used where found here: http://filext.com/faq/office_mime_types.php

Am i missing something obvious? If so i apologize, but I'm running out of options here and desperately need some help.
ths
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 24 Mar 2011, 17:58

Re: Allowed file types, not accepting new MIME types

Post by ths »

I'm sorry i forgot to post information about version etc:

Phoca Download Version: 2.0.0 RC2
Joomla Version: 1.6.1
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Allowed file types, not accepting new MIME types

Post by Jan »

Hi, depends on which form field you have added.

If you mean download (then you set it in Allowed File Types (Download)) This will be checked while uploading in administration

If you mean upload (but only frontend upload) then you set it in Allowed File Types (Upload)

Adding:
{rar=application/x-rar-compressed}

to download box, I can upload rar files in admin and can download them in frontend :(
If you find Phoca extensions useful, please support the project
ths
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 24 Mar 2011, 17:58

Re: Allowed file types, not accepting new MIME types

Post by ths »

Thank you Jan for the reply.

I was adding it to Allowed File Types (Upload) since i thought that would manage both frontend and backend uploads. When adding the MIME types to Allowed File Types (Download) it also allowed me to upload files in backend where i was having problems.

Problem solved, just confused why download controls upload :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Allowed file types, not accepting new MIME types

Post by Jan »

Hi, it is explained in description of the parameters in administration.

Ok, solved.

Jan
If you find Phoca extensions useful, please support the project
Post Reply