shettman Posted December 14, 2009 Posted December 14, 2009 HI, I have just spent hours trying to figure out how to create an upload image facility in the catalog - the actual website, section. This is available in the admin section, but the catalog section sometimes proves difficult. But for developers who hope to implement this method in the client side: 1 quick tip: <b> If you have you a file field function in a form. make sure you add the enctype="multipart/form-data" otherwise the file upload will not work. </b> <b> Also use $HTTP_POST_FILES rather than $HTTP_POST_VARS to obtain the variable 'name' from the form. </b> Doing this 2 things will save you a lot of unnecessary faffing about with things. ... PS: Watch out for more tips in future posts.
josh48202 Posted January 19, 2010 Posted January 19, 2010 wow i wish i would have read this sooner haha this would have saved me tons of time!!!
ce55l Posted February 20, 2010 Posted February 20, 2010 HI, I have just spent hours trying to figure out how to create an upload image facility in the catalog - the actual website, section. This is available in the admin section, but the catalog section sometimes proves difficult. But for developers who hope to implement this method in the client side: 1 quick tip: <b> If you have you a file field function in a form. make sure you add the enctype="multipart/form-data" otherwise the file upload will not work. </b> <b> Also use $HTTP_POST_FILES rather than $HTTP_POST_VARS to obtain the variable 'name' from the form. </b> Doing this 2 things will save you a lot of unnecessary faffing about with things. ... PS: Watch out for more tips in future posts. could you please give example of the upload file code ?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.