-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename file on download #5
Comments
Yes, but as I know download attribute is not completely cross-browser way to start download. Not sure is this feature possible to implement at all. |
yes you can rename the file name..
} window.downloadFile.isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; Call the download function as below |
Could you confirm this works in FireFox and Safari? |
yeah.I worked with fire fox and chrome . but i have to check whether it is working in safari or not |
Hi i've implemented this myself and it doesn't seem to work. |
I have tried it as well, it is not working on chrome. I have and AWS s3 file with name say XYZ.ext and I want it to be ABC.ext but this is not working. Even if i create a normal download attribute in anchor tag it doesn't work. |
Download attribute also doesn't work while getting assets from other domain. |
@DroidUnknown You can use a nginx to get s3 file url by proxy, like this
then set |
download attribute will only work on the chrome browser. |
Is it possible to rename a file on download?
It is doable with
download
attribute - http://stackoverflow.com/a/15970037/257815The text was updated successfully, but these errors were encountered: