I´m developing a widget that downloads files, I´m using widget.openUrl(file) to do that. But I want to change file name and, if I could, downloads folder too. Can I do that with openUrl? There is any way to do that?
Help please!!!![]()
I´m developing a widget that downloads files, I´m using widget.openUrl(file) to do that. But I want to change file name and, if I could, downloads folder too. Can I do that with openUrl? There is any way to do that?
Help please!!!![]()
Hi pep_dj,
about changing the downloaded filename, you can setup your server so that it sends an appropriate header telling which the default filename should be. The header is "Content-disposition", and a sample usage would be:
About the default destination folder, you can not modify that, since it's the web browser to decide that.Code:Content-disposition: attachment; filename=your_filename.mp3
Hope it helps,
Pit
Thanks jappit. But I don't have access to the server, I need to do this in my widget. Is this possible?