Guest Posted December 5, 2003 Add a trailing / to the DIR_FS_CATALOG definition. Hth, Matt Share this post Link to post Share on other sites
dionn 0 Posted December 11, 2003 I have been getting the same Error: Destination does not exist error. I followed all the previous posts to make sure the spelling was correct, etc. I chmod'd the directory to 777, but still to no avail. The even weirder thing is that as part of debugging I changed the directory to use the same one I use from the Admin screen when upload product images and I still get the Destination does not exist error. Any clues? Thanks! Dionn Share this post Link to post Share on other sites
dionn 0 Posted December 11, 2003 Please disregard my post. Turns out my service provider changed servers on me so my path was wrong! Love the contribution! Share this post Link to post Share on other sites
241 21 Posted December 12, 2003 How easy would it be to alter this code for another area? We have a requirement for customers to upload .doc files This would be in an area not conected to products. No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Share this post Link to post Share on other sites
Guest Posted December 13, 2003 This would be in an area not conected to products. If it is not connected to products, I would skip this module and start from the admin/includes/classes/upload.php. You can see two ways to use it in admin/categories.php. Hth, Matt Share this post Link to post Share on other sites
241 21 Posted December 13, 2003 Thanks for the insite Matt, I will go to work on that. The idea is to have the upload area in the website, so I take it that this mod would need to then be integrated across from the admin side No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Share this post Link to post Share on other sites
Guest Posted December 13, 2003 Essentially, this contribution melds the upload class from admin with Chandra's Option Type Feature contribution. What I did is I copied the upload class from admin to catalog and modified it. You may not have to modify it at all. Just add a tep_draw_file_field where you want it, change tep_draw_form to use the 'enctype="multipart/form-data"' parameter, and do a $doc_file = new upload(DIR_FS_DOC_FILES); to catch the result. If you need to rename the files on upload, it would get a little more complicated. The code from this contribution that would be relevant to you would be in product_info.php and includes/application_top.php. Note: as I said above, the modifications that I made to the upload class were to accomodate the way attributes are passed. If you look at this code, you will need to ignore them, as they won't help you. Hth, Matt Share this post Link to post Share on other sites
bethbenjamin 0 Posted December 16, 2003 I have gone through the steps and set up a file upload to my store. I browse - upload and during checkout - i see that it has called it something like /tmp/php32i3to but honestly - i dont know where to find that - or even if i have that file??? Can you tell me how and where to find it? thanks in advance. Share this post Link to post Share on other sites
bethbenjamin 0 Posted December 16, 2003 I forgot... I have set up the .htaccess and the images/upload folder with 777 ... just a little more info... for the above if that helps? Share this post Link to post Share on other sites
Guest Posted December 16, 2003 /tmp/php{whatever} is an error. Is your store publicly available that I could try a test order? Are you using the latest version of the contribution (.77, topmost links on the contribution page). Thanks, Matt Share this post Link to post Share on other sites
bethbenjamin 0 Posted December 17, 2003 yes! you can get there by http://www.luxeorama.com/store/product_inf...?products_id=12 and the product in question is our example - jacket. this is the only one that has the option of uploading the file. and i have tried to merge the latest version since i am using an older version of ms1 Share this post Link to post Share on other sites
Guest Posted December 17, 2003 Something seems to be wrong with the setup. For one, I don't see a browse box for your attribute. Look here for an example of how it should look. Hth, Matt Share this post Link to post Share on other sites
jfitz 0 Posted January 2, 2004 Thank you for this contribution :D I would like to combine this contribution: Attributes option type selection includes quantity discounts, minimum number of products order, and conditional option (option1 linked with option2, if you select option1, option2 is automatically selected) With your File Upload .7 (for PA - Option Type Feature) Do you think it is possible? Share this post Link to post Share on other sites
jfitz 0 Posted January 2, 2004 includes special offers (3 for 2), quantity discounts, minimum number of products order, conditional option (option1 linked with option2, if you select option1, option2 is automatically selected) and order of attribute. Share this post Link to post Share on other sites
jfitz 0 Posted January 2, 2004 Two interesting forums: [CONTRIBUTION] - Attributes option type selection and Option Type Feature vs option type selection Can we combine them both? Share this post Link to post Share on other sites
GraphicsGuy 0 Posted January 11, 2004 I am trying to set up this File Uploads contribution to coexist with the Options as Images (OAI) mod (http://www.oscommerce.com/community/contributions,1467). However, because OAI takes over the drawing of the attribute controls, it displays all non-image attributes as drop down boxes instead of the appropriate control. What appears to be needed is to bring the functionality of the File Uploads/Option Types lines in "product_info.php" into Options as Images file "options_images.php". Or as another approach, perhaps the image attribute type could be added to the Option Types functionality of this contribution. Has anybody done either of these? Any suggestions? P.S. This is on osc2.2ms2 Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Share this post Link to post Share on other sites
aliharis2004 0 Posted January 23, 2004 Did anyone come across the problem that when trying to upload the image it gives the following error : Error: destination does not exist. I checked everything as many times possible .... and I have everything as instructed .... Thanks for the help Share this post Link to post Share on other sites
dionn 0 Posted January 23, 2004 Thank you! I tried searching, but perhaps I am not using the correct syntax. I will make sure I learn it. Thanks again! Share this post Link to post Share on other sites
beardeddone 0 Posted January 23, 2004 I must be missing some create tables, I getting #1054 - Unknown column 'product_is_call' in 'products' for all the ALTER TABLE 's Best Regards Share this post Link to post Share on other sites
aliharis2004 0 Posted February 7, 2004 hi Matt, thats a great contribution and its working just great .... however I was wondering is it possible that after the customer upload the image they can view the image what they have uploaded ... do you think its possible ..... THanks Ali Share this post Link to post Share on other sites
♥ecartz 724 Posted February 7, 2004 You would have to make two modifications to the code: 1. You would need to retain the extension info, so the browser would know what image it is. 2. You would need to change the shopping cart and/or product info pages to display the image. Hth, Matt Always back up before making changes. Share this post Link to post Share on other sites
aliharis2004 0 Posted February 7, 2004 Hi Matt, thanks for the tip but I was wondering can you help me how to " retain the extension info " I am not sure how to go about that ... Thanks Share this post Link to post Share on other sites
♥ecartz 724 Posted February 7, 2004 There are instructions for that somewhere (maybe in the HTML file that comes with the distribution? I remember writing them...). Basically, you change the code in includes/application_top.php to save the file as something like 1-imagename.ext rather than 1 (where 1 is the files_uploaded_id). You want to leave the files_uploaded_id so that you don't get conflicts between different images that happen to have the same name (the original version of the contribution overwrote the images in that case). Hth, Matt Always back up before making changes. Share this post Link to post Share on other sites
aliharis2004 0 Posted February 8, 2004 Thanks Matt ... I tried looking for the HTML file, and it doesnot seem to be included in it, do you think you can send me ... as I am having a hard time with it ... thank you again so much for your help ...... Share this post Link to post Share on other sites
aliharis2004 0 Posted February 14, 2004 Hello, I am installing Upload option and I am getting this Error: destination (/hsphere/local/home/mosaic/mosaicartkeepsakes.com/catalogimages/uploads/) does not exist. and I read Matt coments on it i.e. Add a trailing / to the DIR_FS_CATALOG definition I am not sure what does trailing means here ... can some one help me .... The parameter I have to change is define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); Thanks Share this post Link to post Share on other sites