I’m currently experincing errors when trying to upload .js files to Grav.
I’ve some major experience in the platform and have added support for media in over 20 different program types but JavaScript seems to be the one not working well for me,
It is for the frontend, we’re trying to add a JavaScript file to one of our documentation pages where the user should be able to download it. As soon as I try to upload any .js file it gives the me error.
As for the suggestion you sent, am I supposed to put it on the page in expert mode like this? If so it doesn’t work…
Hi , ok, sorry I have to go on site now… but will try and have a look at it over the weeekend, time permitting.
I will try and set it up with a fresh grav and quark template and see if it return the same results and then check for errors. So bare with … and will try and get you my findings to you asap.
@ramazan, Just curious… Why would one allow visitors to download js files from documentation pages? I’ve never seen that before.
It is more common to show code snippets in the documentation and allow visitors to copy the snippet.
I think I would be reluctant to download a js file and would prefer to copy the snippet. I would prefer to see the code from stackblitz, jsbin, or what have you, embedded in the documentation.
Yes, that is relevant for the most cases as we’re going for that approach everywhere. For this, we’d prefer to have the file there as the code is very very long.