Get your own customer support community
 

Unable to access files in subfolders

Hi,
I am writing a javascript to select a random image from several images, which I have categorized and put in sub folders, these sub folders are in another folder "img" .

So when i try to access a file "file1" , i use "./resources/img/folder1/file1" to access it.
This works fine when i do a preview of the page. But when I publish the site, the file cannot be accessed and nothing shows up on my page.

Also if I try to access a particular file in the resources folder using the full url http://mysite/resources/file through a browser, it opens. But, if i try to access the same in the "img" folder using http://mysite/resources/img/file, it throws the 404 not found error.

I dont see any problem with my script as it can access the files in resources folder itself. Is there any access privilege issue here?

Thanks
kracksmack
 
sad I’m sad
Inappropriate?
1 person has this question

User_default_medium