The second method works fine, but the idea is not to have so many resources. Is not showing the image, as if the path was incorrect. Yes, right now I'm doing it like that and works but really want to know why the other option is not working. Show 5 more comments.
Here is something else you may wish to try: Go to the static resource 'Detail' page via the Salesforce menu and copy the link address from the 'View file' link into the address bar of your browser. I can only hope that it might help Also, I realise that some of the things I have mentioned have sort of already been mentioned in earlier comments. A couple of questions, I presume it was definitely a ZIP file when you uploaded it? Also, what browser are you using? Yes it was a zip, safari.
Any how, found the problem - Check my question note. Add a comment. Sign up or log in Sign up using Google. We're still running into errors accessing files in zipped static resources using the direct URL e. Thanks, - Ron. DanSweeney I know this thread is fairly old, but I had this same issue and figured out what the problem was. Dan Sweeney Etherios.
It should only go on the "! Include the name of the first folder in the path Hope that helps someone out there! It's fixed in the next release of the docs. Sky K This solution worked for me. Andrew B. Davis The most common reason for getting a error trying to access a file inside a zipped static resource is that you're not using the right syntax, or don't have the filename exactly right. Nevertheless, we just experienced an issue where we had valid references to files inside a zipped static resource and they started returning errors after one update to that static resource.
We tried a variety of fixes and were able to determine that the individual components inside zip file static resources are cached and de-duplicated by Salesforce, so that Salesforce does not have to store 1, copies of jquery.
Salesforce encountered some problems with one or more of the files that were in our zipped static resource with the result that any zipped static resource that included those files would return errors for all it's contents even if the files were re-named and put individually into new static resources.
The resolution for us was to make minor changes to the constituent files and then re-upload them, this way Salesforce recognized them as being changed files. Any zipped static resource that contains the original versions of those files is still broken, and we're reporting this to Salesforce support. My workaround is to give the folder to her to zip and upload.
Summary Files Reviews. Project Samples. Project Activity. Categories Presentation , Visualization , Libraries. License MIT License. Follow Chart. Mit einem Experten sprechen. User Ratings 5. The solution is in the public domain. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
Learn more. How to Zip files using JavaScript? Ask Question. Asked 9 years, 11 months ago. Active 28 days ago. Viewed 74k times. How do I solve the problem? Improve this question. Emma 1. Isuru Isuru Not unzip. So thought of asking it as another post : — Isuru. You might be able to create a windows shell javascript that does this but you cannot do this in the browser.
Add a comment. Active Oldest Votes. Improve this answer. See the table below to check the compatibility of FileSaver. Learn easily by using our HTML5 canvas examples. Learn Bootstrap: this Bootstrap 4 tutorial will easily teach you how to use it for your mobile web design. Learn Bootstrap quickly to become a master. Code has been added to clipboard! Reading time 3 min. Contents 1. What are automatic downloads with JavaScript? Making JavaScript download files without the server 3.
0コメント