Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

uploading pics using the CMS contribution??


johnnyosc

Recommended Posts

Hello Guys,

 

I was wondering how you can get the image to upload using the CMS contribution??

 

When editing the config.php file, I was instructed to add this piece of code:

 

// CMS

define('DIR_WS_UPLOAD_PICS', HTTP_CATALOG_SERVER.'/shop/products/images/cms_upload/'); // image upload path required

define('DIR_FS_UPLOAD_PICS', 'D:/shop/products/images/cms_upload/'); // FS image upload path required

 

My question is how do i edit the 'DIR_FS_UPLOAD_PICS' path so that when i browse my computer for a file, the image will upload with out defining a directory for it like the above code shows D: etc.........or do i have to add all my pictures to a directory called "pictures" in my c drive and use the location c:pictures. Please advise. Thanks.

Link to comment
Share on other sites

Nevermind I figured it out.

 

Here's the solution:

 

// CMS

define('DIR_WS_UPLOAD_PICS', DIR_WS_IMAGES . 'cms_upload/'); // image upload path required

define('DIR_FS_UPLOAD_PICS', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . DIR_WS_IMAGES . 'cms_upload/'); // FS image upload path required

 

JOhnnyOSC

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...