1
chefry
mime type in TDMDownloads
  • 2013/5/15 13:35

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I can't get TDMDownloads to accept the mime type for apk files

I added the line : application/vnd.android.package-archive.apk| in the authorized mime types under preferences

I also created a .htaccess file with the line

AddType application/vnd.android.package-archive .apk

either the module does nothing after clicking on submit, or i get the error

Errors Returned While Uploading file: English Phrasal Verbs.apk
The file you're trying to upload is not supported by this site/server.

I talked to my host and they said to create the htaccess file

can someone suggest something to get this to work?

2
chefry
Re: mime type in TDMDownloads
  • 2013/5/16 16:41

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


bump!

3
timgno
Re: mime type in TDMDownloads
  • 2013/5/16 22:43

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


the server that I use has this type of mime

application/vnd.android.package-archive

4
chefry
Re: mime type in TDMDownloads
  • 2013/5/16 23:12

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


in the htaccess or the module preferences?

5
chefry
Re: mime type in TDMDownloads
  • 2013/5/16 23:18

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


never mind. i made that change to all of them and it's still not uploading

6
timgno
Re: mime type in TDMDownloads
  • 2013/5/17 11:44

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


No I was referring in cpanel to the server, this you can add it yourself if you have access to your server.

7
chefry
Re: mime type in TDMDownloads
  • 2013/5/17 11:47

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


they don't have cpanel, they have a different panel

and they tell me there are no restrictions on file types.

As far as they are concerned, it's the modules problem because other hosted sites with apk files don't have a problem

8
jlm69
Re: mime type in TDMDownloads
  • 2013/5/17 12:20

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


I hate to always show grammer errors but i notice in the line you added to htaccess is:

AddType application/vnd.android.package-archive .apk

there is a space between archive and .apk

not sure if that is right.

John

9
chefry
Re: mime type in TDMDownloads
  • 2013/5/17 12:39

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


i tried it without the space and it killed the website

then i did a search on the internet and it is correct with the space

every example i could find had the space

Login

Who's Online

245 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 245


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits