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