Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Creating an Upload Image in a Customer Site in OScommerce


shettman

Recommended Posts

Posted

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.

  • 1 month later...
  • 1 month later...
Posted

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 ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...