Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image Problem Help please


Genius

Recommended Posts

I have uploaded my image with my product and that shows fine, but if i go and ammend a product details like the price or the description, and then update my product i loose the image and my image size goes to 0 KB. yet i have not even touched the image path..

 

Many thanks

Link to comment
Share on other sites

Most likely this line (and others like it)

 

'products_image' => (($HTTP_POST_VARS['products_image'] == 'none')

 

you should use null rather than 'none'

 

Matti

Link to comment
Share on other sites

I have Solved it now...

 

problem was i had a line called

$sql_data_array['products_image'] = tep_db_prepare_input($HTTP_POST_VARS['products_image']);

 

deleted it and all is well

 

thanks

matti

Link to comment
Share on other sites

One more question to add to this.

 

IF i do not browse for the image and say i put in the pathe name like

 

books/12345.jpg

 

that does not really seem to work..

 

would someone please advise me as what i can type there without using the browse button,

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...