File access in subdirectories

Advertisement

Guest
Guest

File access in subdirectories

(Please be patient with me and reply in simple English as this is my first time using WinSCP and I am not overly familiar with all of the language!)

Right, I am using WinSCP version 4.1.8 (build 415) on Windows XP, and using the Explorer interface. I am using FTP in order to upload files to a website hosted at winwebhost.daily.co.uk .

I have a main directory with various subdirectories, corresponding to subpages of the website (as I don't want to get into .htaccess just for the sake of removing the ".htm" at the end of each subpage's web address). I would like to be able each .htm file to be able to access a single background image in the home directory, as duplicating it for each directory will obviously take up memory and I can't help feeling there should be a relatively simple solution.

Am I right that I want to set the image's file permissions? Following the documentation, I have tried to play around with this via the Properties box, but every single time have ended up with an error message along the lines of
'SITE CHMOD 040 /wwwroot/bigstock1.JPG': command not understood
.

Why is it doing this? Is changing the file's permissions even what I want to be doing in the first place?

Thanks in advance!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Probably not.

You should just make sure the URL of the background image in your HTML pages point to correct directory.

Also you should better seek advice on HTML related forum.

Reply with quote

Guest
Guest

Only thing is... surely the subdirectory would have to have permission to access the image in the home directory?

There is still an issue with the chmod command not being recognised by the program.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Guest wrote:

Only thing is... surely the subdirectory would have to have permission to access the image in the home directory?
Well, permissions are always specific to OS on the server side. But I haven't heard of such OS. So generally, no, it won't.

There is still an issue with the chmod command not being recognised by the program.
How do you execute the command? Please post a full log file showing the problem.

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. For posting extensive logs you may use pastebin or similar application. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

Reply with quote

Advertisement

Guest

martin wrote:

How do you execute the command? Please post a full log file showing the problem.

I have been executing the command via the Explorer interface. I have sent a log file to your email address.

Reply with quote

Advertisement

You can post new topics in this forum