Skip to content
Advertisement

The image files is uploaded successfully to the folder but file name is not saved in database

View Page input form. I was trying to upload a product with product images and complete the full crud operation about images and product details. This is the form for product details and image upload.

JavaScript

Ajax code on view page for snding data to the server.

JavaScript

Controller Code for uploading multiple image file and product details with session check. files are uploaded successfully in the folder. all details about product are successfully submitted to the database but the image section of database is empty. I was unable to send the image file name.

JavaScript

I have selected 4 image files to upload. Images are uploaded i get a successful message and i have checked it in the mentioned folder. But image file name is not showing in the database. Help us Thank you

Advertisement

Answer

You need to save the images name in product table as json_encode.

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement