Valid file-type for excel- sheets

Phoca Download - download manager
Brixto
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 Mar 2013, 10:06

Valid file-type for excel- sheets

Post by Brixto »

Hi,

i have some trouble adding a valid file type for some excel- sheets. The file- extensions i'm using are:
*.xls, *.xlsm, *.xltm

I tried adding the following lines to the allowed file- types:
{xls=application/vnd.ms-excel}
{xlt=application/vnd.ms-excel}
{xla=application/vnd.ms-excel}
{xlsx=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet}
{xltx=application/vnd.openxmlformats-officedocument.spreadsheetml.template}
{xlsm=application/vnd.ms-excel.sheet.macroEnabled.12}
{xltm=application/vnd.ms-excel.template.macroEnabled.12}

, but this hasn't fixed it. Maybe i'm missing something.
Hope, someone has a clue for me :)

Brixto
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48587
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Valid file-type for excel- sheets

Post by Jan »

Hi, testing now XML files and get no problems :idea: with default: {xls=application/vnd.ms-excel} :idea:

Jan
If you find Phoca extensions useful, please support the project
Brixto
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 Mar 2013, 10:06

Re: Valid file-type for excel- sheets

Post by Brixto »

When i'm using {xls=application/vnd.ms-excel} as default, i'm getting the error:

Code: Select all

File not uploaded
The file type is not allowed - file cannot be uploaded
This isn't really a XML- file, it's an excel- sheet with macros enabled (I'm using Microsoft Excel 2010).

I also tried to use a "standard- file (*.xls), this isn't working either with the default entry.

Thanks for your help :D

Brixto
Brixto
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 Mar 2013, 10:06

Re: Valid file-type for excel- sheets

Post by Brixto »

Hi,

I posted allready some time ago, but my post, wasn't showing up.
However, this isn't really a XML- file. It's an Macro- enabled Excel Sheet.
I'm using Microsoft Excel 2010, if this helps.
Isn't it possible to define only the suffix without those MIME-types? Or using some kind of wildcards?

Thanks,
Brixto
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48587
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Valid file-type for excel- sheets

Post by Jan »

Hi, no, it is a security feature, so the mime types are checked, in Phoca Download 3 you can disable such feature.

Jan
If you find Phoca extensions useful, please support the project
Brixto
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 Mar 2013, 10:06

Re: Valid file-type for excel- sheets

Post by Brixto »

Sorry, but this doesn't help me at all, since the Version 3 isn't available for Joomla 2.5. (I hope, I'm not missing something).
So my actual problem is still, to get the right MIME-types, maybe you can help me with this?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48587
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Valid file-type for excel- sheets

Post by Jan »

Hi, testing now: {xls=application/vnd.ms-excel} included and get no problems there :idea:

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