Add Pdf Files To Site

I have a page under Website - Content that i want to add href links to a number of pdf files. My question is there a folder that i upload the pdf files too or do i create a new folder for pdf files only?

Create a folder of var/files/my_files and put them there.

[quote]Create a folder of var/files/my_files and put them there.[/quote]



I don't have a folder by the name /files/my_files so are you saying that i navigate to /public_html/var/ then create folders /files/my_files and add pdf files there?

Yes, then use var/files/my_files/[your filename.pdf] as the reference.

Ok navigated to public_html/var then made new directory files/ then clicked on files/ and made new directory my_files/ and added .pdf file from local pc but front end shows 404 page not found. I don't know if it makes any difference but the version i am using is multi vendor with two stores, could this be why the 404 error is shown?

First off, mult-vendor doesn't support multiple stores. So I'm assuming you mean you have multiple storefronts in your standard cs-cart V4 installation.



What is the link you are using. should look like

My PDF File

The original link was

description here


I did try your suggestion but 403 forbidden error shown.

You might need a .htaccess file in that directory. Sorry, but headed out of town for a short vacation so hopefully someone else can assist you on this. Might verfiy the proper ownerships/permissions of the path leading to the files.

Ok thanks for all the help, its greatly appreciated.



Added a .htaccess file to both directory's /files and /my_files with the following code but i still get the 403 forbidden error, any help appreciated.



Order deny,allow

Deny from all



order allow,deny

allow from all

Now getting 404 error, checked the url path and its correct.





Any help anybody.

I am amazed that there has been no resolution in 6 years.

I also went down the suggested path but 404's abound.

placed into folder. Refenced in html as

http://www.xxxxx.com.au/var/files/my_files/xxxxxxxxxx.pdf

404

why not just create it in root

/your_file_path

I am amazed that there has been no resolution in 6 years.

I also went down the suggested path but 404's abound.

placed into folder. Refenced in html as

http://www.xxxxx.com.au/var/files/my_files/xxxxxxxxxx.pdf

404

It is not good practice to store such files in the root directory. If the system does not allow you to get files from the var/files directory through URL, use the images directory