Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Add Pdf Files To Site Rate Topic   - - - - -

 
  • swifty
  • Advanced Member
  • Trial users
  • Join Date: 30-Mar 13
  • 138 posts

Posted 08 September 2014 - 05:45 PM #1

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?

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12071 posts

Posted 08 September 2014 - 07:34 PM #2

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

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • swifty
  • Advanced Member
  • Trial users
  • Join Date: 30-Mar 13
  • 138 posts

Posted 08 September 2014 - 08:44 PM #3

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


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?

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12071 posts

Posted 08 September 2014 - 11:02 PM #4

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

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • swifty
  • Advanced Member
  • Trial users
  • Join Date: 30-Mar 13
  • 138 posts

Posted 09 September 2014 - 04:56 PM #5

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?

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12071 posts

Posted 09 September 2014 - 06:37 PM #6

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
<a href="var/files/my_files/mypdffile.pdf">My PDF File</a>

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • swifty
  • Advanced Member
  • Trial users
  • Join Date: 30-Mar 13
  • 138 posts

Posted 09 September 2014 - 06:58 PM #7

The original link was
<div align="left"><span style="font-family: Arial; font-size: 11pt;"><a href="&quot;http://www.myurl/pub...df">description here</a></span></div>

I did try your suggestion but 403 forbidden error shown.

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12071 posts

Posted 09 September 2014 - 08:05 PM #8

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.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • swifty
  • Advanced Member
  • Trial users
  • Join Date: 30-Mar 13
  • 138 posts

Posted 09 September 2014 - 08:56 PM #9

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
<Files ~ "\.(js|css)$">
order allow,deny
allow from all
</Files>

 
  • swifty
  • Advanced Member
  • Trial users
  • Join Date: 30-Mar 13
  • 138 posts

Posted 10 September 2014 - 07:00 PM #10

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


Any help anybody.

 
  • termalert
  • Senior Member
  • Members
  • Join Date: 14-Jan 09
  • 987 posts

Posted 30 May 2021 - 04:36 AM #11

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.../xxxxxxxxxx.pdf

404



 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4940 posts

Posted 30 May 2021 - 10:33 AM #12

why not just create it in root

/your_file_path


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21980 posts

Posted 31 May 2021 - 06:13 AM #13

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.../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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)