Hi there,
I have MP3 links on a webpage, and want a ‘Download’ button instead of the users having to right-click, then select ‘Save Target As’.
Next to the MP3 links I have placed links to an agent that does the following:
Dim session as NotesSession
etc
’
Dim xFileName As String
'Hardcoded MP3 name for time being:
xFileName=“Garuda4D: RTP Slot 2024 Yang Sedang Trending Di Indonesia Berserta Pola Untuk Meningkatkan Kesempatan Menang”
’
Print|Content-Type:application/download|
Print |content-disposition: attachment; filename=| + xFileName
Print | location.href(| + xFileName + |) |
According to the Microsoft document: http://support.microsoft.com/kb/q260519/ this should ‘Raise a “File Download” Dialog Box’, which it does, but some of the characters in the URL presented to the user are altered so that ‘://’ becomes ‘___’, all spaces also become underscores as do all forward slashes.
This prevents the file being downloaded, and even if the corrupted characters are replaced by the correct ones, the download dialog has taken the size of the file to be approx 10% of what it is, so garbage is downloaded.
In terms of possible solutions, in addition to the above two lines I have also used all possible combinations of:
Print |Content-type: audio/mpeg|
Print |Content-type:application/force-download|
Print |content-type: application/octet-stream |
Print |Content-Transfer-Encoding:base64|
Has anyone seen this before? Any suggestions gratefully received!
Cheers,
Jimmy