Hi,
OK so for a while I have been making apps that download files and as long as the link ends in a known extension its pretty reliable. however my users are now using dropbox and tinyurl combinations, I would like to implement it as it makes the users life easy. the question is!!
In most web browsers entering a tinyurl (to a direct file link) the browser will open the save window and show the correct file name!
So far I have always used the URL stripped down to the name and extension this has always worked but with all URL shorteners the file name isn't there! So i don't know the Name or the extension.
Obviously the server is supplying the name to web browsers so how can I read it?
Thanks
OK so for a while I have been making apps that download files and as long as the link ends in a known extension its pretty reliable. however my users are now using dropbox and tinyurl combinations, I would like to implement it as it makes the users life easy. the question is!!
In most web browsers entering a tinyurl (to a direct file link) the browser will open the save window and show the correct file name!
So far I have always used the URL stripped down to the name and extension this has always worked but with all URL shorteners the file name isn't there! So i don't know the Name or the extension.
Obviously the server is supplying the name to web browsers so how can I read it?
Thanks