Topic "File access in subdirectories"

Author Message
Guest

Guest


(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
Code:
'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!
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
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.
_________________
Martin Prikryl
Guest

Guest


OK, thanks for getting back to me.
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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
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.

Quote:
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.
_________________
Martin Prikryl
Guest




prikryl 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.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License