gokhalehemal11 / Grocery-Ecommerce

A multi- vendor E-commerce Grocery store with Html, CSS, Bootstrap, Javascript, PHP and Mysql
Other
28 stars 14 forks source link

"Add Product" button not working #3

Open agent-dash opened 1 year ago

agent-dash commented 1 year ago

The blue colored "second" "Add Product" button in the modal window, after filling the product details, doesn't seem too work. If I leave any field empty, i can see the error mesage on the console, but if I fill the product details correctly, I'm still not able to add the product to the database... the button simply doesn't work. I'm not sure, but maybe some issue at line 380 'add-product' in classes/Products.php

AnujZanje1142 commented 7 months ago

change file path . if (move_uploaded_file($file['tmp_name'], $_SERVER['DOCUMENT_ROOT']."/big_store/web/images/".$uniqueImageName))

to

if (move_uploaded_file($file['tmp_name'], $_SERVER['DOCUMENT_ROOT']."/Grocery/E-Commerce-Grocery-Store-main/images/".$uniqueImageName)) error slove . i try my best plz check in your side , thank you 👍