johnnyosc Posted February 16, 2003 Share Posted February 16, 2003 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. Quote Link to comment Share on other sites More sharing options...
johnnyosc Posted February 16, 2003 Author Share Posted February 16, 2003 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.