Rename file download javascript






















Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Who owns this outage?

Building intelligent escalation chains for modern SRE. Podcast Who is building clouds for the independent developer? Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer.

Linked Related Hot Network Questions. Question feed. How to rename downloaded files from window. Ask Question. Asked 4 years, 9 months ago. Active 4 years, 9 months ago. Viewed 15k times. DennyHiu DennyHiu 2, 5 5 gold badges 31 31 silver badges 60 60 bronze badges. Add a comment. Active Oldest Votes.

Not sure is this feature possible to implement at all. Sorry, something went wrong. Rewrite the download.

We have to inform user about this. Please try again in desktop browser. I worked with fire fox and chrome. Please note that when you rename a file asynchronously, it is not guaranteed that the renaming happens immediately.

And if you plan some tasks with the renamed file right after the renaming operation like reading file , deleting file etc. So make a thumb rule.

If there are no further tasks related to the file after renaming, rename file asynchronously, else rename it synchronously. But it works only in Chrome browser :. ValeriiVasin ValeriiVasin 8, 11 11 gold badges 55 55 silver badges 75 75 bronze badges. What's the reason that you want to rename the downloaded file anyway? Michael Sandino Michael Sandino 1, 1 1 gold badge 12 12 silver badges 9 9 bronze badges. I have the files in a Sharepoint library and I'm trying to create a custom action to download the files and add the document version in the file name.

To do this custom action I can only use javascript code. Any tips? Truesky Truesky 2 2 silver badges 11 11 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.



0コメント

  • 1000 / 1000