|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Mp3 file download as .aspx file and not open on phone player
I have the same problem , i also create a mobile application ain asp.net to download mp3 file on cell phone.
But i find that when i access the page from cell phone , file save and displayed as wapauthenticate.aspx not as <filename>.mp3, opened by the media player after downloading? For more reference i add my download code asp Code:
Please help me out from this problem Last edited by jabba_29 : December 4th, 2007 at 05:44 PM. |
|
#2
|
||||
|
||||
|
Hi yoge, I know next to nothing about .net programming,
but I feel that you need to add filesize(Content-length) at least as a "response.AddHeader". HTH.
__________________
Cheers, Jamie # mdb4u | mobile movie database] | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
|
#3
|
|||
|
|||
|
if you have download link : http://website/download.aspx?id=1234, most mobile will save the content you're flushing using "download.aspx" as file name instead of what you have specified in Content-Disposition header
as you can see, most mobile will use the file name its accessing into, so...to solve this problem you can put the url instead into this one : http://website/download.aspx/myringtone.mp3 to ensure the phone to save it as "myringtone.mp3" the question is, "hey, it will return HTTP 404 Error File Not Found", but fortunately asp.net and php already that smart that they know we're actually want to access "download.asp" instead of "myringtone.mp3" so...when ever user contact url http://website/download.aspx/myringtone.mp3, they will contact "download.aspx", instead of giving error try it... *** now...its my turn, I'm still using the "old" asp, and unfortunately the feature I said above is not yet available I just cant simply use url : http://website/download.aspx/myringtone.mp3, it will give either HTTP 404 not found or...HTTP 500 IIS Error so, if anyone who know how-to solve this problem in asp, pls advice, thx... ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > Mp3 file download as .aspx file and not open on phone player |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|