When you do this, you can still save them and it'll pre-populate the filename of 'AccountReport. Solution was helpful. But when opened the downloaded PDF file it prompted as corrupted. Not sure why the dynamic naming created problem when I used alphanumeric and hyphens to create filename.
It worked. Any idea? 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. The Overflow Blog. Podcast what if you could invest in your favorite developer? Who owns this outage? Building intelligent escalation chains for modern SRE. Featured on Meta. Now live: A fully responsive profile.
Reducing the weight of our footer. Linked 1. Related 0. Hot Network Questions. Question feed. Salesforce Stack Exchange works best with JavaScript enabled.
Accept all cookies Customize settings. Emile Bergeron Mephiztopheles Mephiztopheles 1, 11 11 silver badges 25 25 bronze badges. There are several ways to avoid that, you can always download the file using curl or wget to a server, rename it using rename thefileIdownloaded.
Toby Allen Palantir Palantir 23k 9 9 gold badges 74 74 silver badges 84 84 bronze badges. Thanks for that. I figured that was the case, just wanted to make absolutely sure. You've deleted the question you are linking. Did you resolve it? This doesn't work, at least on chrome. It just says "failed - no file" or "failed - server problem" when I tried it.
BrettWoodward Can you show me what's your Chrome Version? It's OK for me. BrettWoodward this happens when href value points to page with error. Try removing "download" attribute to check if page works without downloading. Well, Palantir's answer is, for me, the most correct way!
Good Luck ; Sorry for my english. Marcel Korpel Well, Mephiztopheles's answer is, for me, the most correct way! 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.
The Overflow Blog. Podcast what if you could invest in your favorite developer? Who owns this outage? Building intelligent escalation chains for modern SRE. Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer.
Linked 4. See more linked questions. Related
0コメント