Hey All,

I am having a problem with a little project I am working on. It invovles uploading files (midi, wav, mp3 etc...) to the web and downloading onto a cell phone via WAP. So far life has been sweet and the project was going fine. Until I actually tried to download the file. WAV and MIDI seems to work fine, but they do not download. When I click the link for the file (ex: http:/www.domain.com/file.midi) it actually plays the file in the browser without downloading to the phone. Is there a way I can 'force' download? Maybe my MIME types are set incorrectly. Any suggestions?

Thanks in advance.


My current HTACCESS file

AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar
AddType text/vnd.wap.wml wml
AddType audio/amr amr
AddType audio/midi mid
AddType audio/midi midi
AddType application/vnd.Nokie.ringing-tone rng
AddType application/vnd.symbian.install sis
AddType application/vnd.wap.wmlc wmlc
AddType text/vnd.wap.wmlscript wmls
AddType text/vnd.wap.wmlscript wmlsc
AddType application/vnd.wap.sic sic
AddType text/vnd.wap.si si
AddType text/vnd.wap.sl sl
AddType application/vnd.wap.slc slc
AddType text/x-vCalendar vcs
AddType text/v-vCard vcf
AddType application/vnd.nokia.gamedata nqd
AddType application/x-nokiagamedata ngd
AddType image/vnd.wap.wbmp wbmp
AddType image/x-bmp bmp
AddType image/x-epoc-mbm mbm
AddType image/vnd.nok-3dscreensaver n3a
AddType text/x-co-desc cod
AddType image/vnd.nok-oplogo-colornokia-op-logo nok
AddType application/x-pmd .pmd
AddType audio/vnd.qcelp .qcp

AddType application/x-smaf .mmf

~ Parse-error

    Hey Bpat,

    Thanks for the link. I had actually looked through the forum first, but was unable to find anything. Guess I didnt look hard enough 😉

    Thanks for your help

    ~ Parse-error

      5 days later

      Parse-error,

      Did the other thread help? I am also interested in any solution you find.

      I've noticed that mobile phones completely ignore content-disposition (unless it is running a a 'PC' browser). On my site, the problem you describe seems to only occur on Samsung phones. Nokia and other phones play and give the option to save the file. My conclusion is that the phone needs to be identified, and then a specialized content-type header sent to Samsung phones. Unfortunately, after pouring through dozens of http-accepts from users who have mentioned this problem, I can't seem to find an appropriate content-type. What phone do you use?

        Write a Reply...