Location of files on computer vs...

User 193638 Photo


Registered User
557 posts

Dumb question #4568

New to this web page thing so please bare with me.

I have finally figured out the file structure to use on my computer. Now I am getting confused about what happens when I build my site with SCCP and reference the files on my computer, i.e. images.

Let's say I put a picture on my home page and the link within the HTML code to that file is E:/MyWebpage/images/picture.png (on my computer), after I upload all the web page info and files, etc. to the web host server, what happens to this link? Does it stay the same? If so, the picture will never open up in a web browser because there is no E drive. Do I have to change all the links to my pictures (and other files) after I upload to correspond with the right folder location that will be on the server?

I do not have a host yet as I feel it is going to take me another year to get my sight up and running because I do not have the stock yet to open this store. To get a host now would be a waste of money.

User 364143 Photo


Guest
5,410 posts

Create a directory on your server for files you upload manually (that you add using the html tool). Upload these files using the CC Direct FTP or Free FTP program. Use relative links in the html.

/images/picture.png
CoffeeCup... Yeah, they are the best!
User 193638 Photo


Registered User
557 posts

As I said Tom, there is no server yet. So when the day comes that there is a server (after I have entered 500 products and pictures!!!), will I have to change ALL the image and file referrences from my computer's location to the server's location by doing what you say. Or Do I leave them the way they are, referencing them to my E: / drive?
User 364143 Photo


Guest
5,410 posts

Images that you insert into pages using the html tool will require the code to have the correct relative server path to display properly (including images that you insert on your home page, as you originally stated). You have to manually upload these image files.

Product images that you insert while adding and working with products will automatically upload to the correct path and display properly. Hope this helps.
CoffeeCup... Yeah, they are the best!
User 193638 Photo


Registered User
557 posts

So the images of the products that I entered do not have to be located on the server, like the pictures referenced in HTML code?
User 103173 Photo


VP of Software Development
0 posts

Steven Alford wrote:
So the images of the products that I entered do not have to be located on the server, like the pictures referenced in HTML code?

Yes, they will be on the same server because they are uploaded by the software. Only images you add using the HTML Tool can be stored on a different server.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 193638 Photo


Registered User
557 posts

OK, now I'm really confused!!!!!!!!!!

I understand that the images of my products get uploaded when I upload to the server. Do I have to manually build a file structure on the server to match that of my computer? Or will SCCP automatically build the correct file structure upon uploading?

As for the pictures in the HTML code, what do you mean by "Only images you add using the HTML Tool can be stored on a different server. What different server? There is only one isn't there?
User 364143 Photo


Guest
5,410 posts

For product images that you insert when adding or working within products, no. The program handles this for you. The only image paths you have to worry about are images you add to pages using the html tool.

Approach it this way. If SCC has a button that opens a dialog for you to add images, the program will automatically handle the upload and image path. If you use the html tool to insert html code to add images <img>, you have to manually insert the correct file path that is on the server.
CoffeeCup... Yeah, they are the best!
User 193638 Photo


Registered User
557 posts

OK, I'm cool. That makes sense.
User 364143 Photo


Guest
5,410 posts

:)
CoffeeCup... Yeah, they are the best!

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.