Can't add my jwplayer.js script to Settings\Scripts
I want to add jwplayer.js file to Settings\Scripts.
First I add empty file to this location in Back Office and then copy the content from original jwplayer.js file, but I got message "can't save the file, check access permissions to the file".
It's strange because I created this file. It's fine when I add some short text for testing purposes. In this case I can save the file.
What can cause this problem ? Some part of this script is forbidden ? Is the .js file validated during save operation or it doesn't matterwhat's inside ?
It may be a bug in the version of 7 you're using. If you're using anything below 7.1.4 then try upgrading to 7.1.4, which fixes a lot of minor bugs.
I have not come across the issue myself but I never really add scripts using the backoffice. So unless you have a very specific reason for doing it like that it should be fine to simply just add the script in a folder on the disk, which you can then reference.
If you place the script in the /scripts/ folder Umbraco should pick it up so it can be edited within Umbraco. But you can place it anywhere you would like within your Umbraco project (on disk) and just reference it in your code as needed.
Looking forward to hearing from you and hope it helps.
Well, perhaps you can encourage to do an upgrade - it should not take long an minor bugs, which can turn out to be an issue in 7.1.1 will be fixed in 7.1.4.
However, as I mentioned above you can just place the script on disk and reference it from there rather than creating it using Umbraco.
Ok, do you mean to add js file the same way I add media files ? I would like to know precisely what do you mean beacuse I have to tell it to the customer how he should proceed.
What I tried to explain above was that script files can be added on the disk - not trough umbraco - So unless your client has FTP access or can access the server remotely and move files around on the folder structure of the disk I don't think this is the proper approach.
But what kind of script does your client need to upload? What would the script do? And how would he reference it in the templates? Does he know how to code etc. ?
Can't add my jwplayer.js script to Settings\Scripts
I want to add jwplayer.js file to Settings\Scripts.
First I add empty file to this location in Back Office and then copy the content from original jwplayer.js file, but I got message "can't save the file, check access permissions to the file".
It's strange because I created this file. It's fine when I add some short text for testing purposes. In this case I can save the file.
What can cause this problem ? Some part of this script is forbidden ?
Is the .js file validated during save operation or it doesn't matter what's inside ?
Thanks for help
Hi Kososki
What exact version of Umbraco 7 are you using?
It may be a bug in the version of 7 you're using. If you're using anything below 7.1.4 then try upgrading to 7.1.4, which fixes a lot of minor bugs.
I have not come across the issue myself but I never really add scripts using the backoffice. So unless you have a very specific reason for doing it like that it should be fine to simply just add the script in a folder on the disk, which you can then reference.
If you place the script in the /scripts/ folder Umbraco should pick it up so it can be edited within Umbraco. But you can place it anywhere you would like within your Umbraco project (on disk) and just reference it in your code as needed.
Looking forward to hearing from you and hope it helps.
/Jan
I'm using 7.1.1 and unfortunately it's not my decision. I looked at 7.1.4 changes and nothing looks like something related with my issue.
Hi Kososki
Well, perhaps you can encourage to do an upgrade - it should not take long an minor bugs, which can turn out to be an issue in 7.1.1 will be fixed in 7.1.4.
However, as I mentioned above you can just place the script on disk and reference it from there rather than creating it using Umbraco.
/Jan
Ok, do you mean to add js file the same way I add media files ? I would like to know precisely what do you mean beacuse I have to tell it to the customer how he should proceed.
Hi Kososki
What I tried to explain above was that script files can be added on the disk - not trough umbraco - So unless your client has FTP access or can access the server remotely and move files around on the folder structure of the disk I don't think this is the proper approach.
But what kind of script does your client need to upload? What would the script do? And how would he reference it in the templates? Does he know how to code etc. ?
/Jan
is working on a reply...