Read-only archive of the All About Symbian forum (2001–2013) · About this archive

WAP Push Headers on Symbian 8 (Nokia 6680)

1 replies · 2,929 views · Started 16 June 2005

Hello,

I am having filename issues on generated headers from PHP.
I am trying to develop an application in PHP that sends you a service message (WAP Push) on your mobile device with either a MIDI or a JPEG file.

The link in the Service Message will be something like:

http://multimedia.myserver.com/download.php?id=hashvalue

download.php generates a Header depending on the hashvalue stored in a database on the server --> Header("Content-type: image/jpeg"😉;

When I save the file on the mobile phone, its name becomes "download.jpeg". This is not what I want. I want the filenames to be generated by the server, so that no duplicate filenames will occur. I tried to play with "Content-Disposition", but this doesn't do the trick and even worse, it does not work at all on older Phones like Nokia 6610.

Talking about Nokia 6610, there the filenames are not being named "download" but "imagesXXXX", which was a nice workaround for duplicate filenames.

I am pretty stuck here.

Any help on that would be welcome.

Thank you so much!

Andy

I have the same problem, although I set the Content-Disposition and the content type to the file name and the mime type of the file.

It works fine when I download the file using the browser. (The name of the file appears correctly)

but using nokia7610 the name of the file appears as the name of the site.

Any cooperation will be appreciated. http://www.allaboutsymbian.com/forum/images/icons/icon12.gif

Thanks forward.