cPanel, Including Box-stored files and images in cPanel-hosted web pages

Because cPanel has a limited amount of storage space, you may wish to host images and documents such as PDFs in Box and link to them from your web pages.

If you want to use Box to host files and images for your cPanel website, you'll want three things:

  • (Optional but recommended:) A specific Box folder to contain the shared content
  • File permissions that include "everyone with the link"
  • The "Direct Link" to the file (which is usually not the same as the URL in your browser window)

Choosing a folder

While you can provide individual direct links to files that are stored in different locations within Box, you'll find it easier to keep track of where your web-linked files and images are if you create a folder specifically for this purpose.

For the examples below we've used a folder called Public. We've also uploaded a test document and a copy of the I-mark GIF image.

1. Select your file in the Box folder and click the Share button that appears when you click or hover over your file.

shared folder

2. In the Shared Link window that appears, adjust the file permissions to People with the link.

people with link

3. Click the gear icon to open the Shared Link Settings window.

4. Copy the Direct Link to the file.

direct link

5. Use this link in your cPanel-hosted web pages to include images or files from Box.





Keywords:cPanel, web hosting, Box, storage, hotlinking, direct link   Doc ID:84981
Owner:Web H.Group:University of Illinois Technology Services
Created:2018-08-17 14:08 CSTUpdated:2018-09-20 16:30 CST
Sites:University of Illinois Technology Services
Feedback:  0   0