Skip to content
Advertisement

Images are upload in folder via form but name in DB is not image name. Instead it’s a path to XAMPP tmp file?

In my admin table, the column image is showing this path after the image uploads: C:xampptmpphpC6DA.tmp but image name don’t. Image is perfectly uploaded to desired folder and that is ok…

I’ve tried to change varchar to text, for image column in MySQL. Maybe it’s a XAMPP setting I don’t know? MySQL is set as InnoDB.

This is a part of the code

JavaScript

Advertisement

Answer

Replace

JavaScript

With

JavaScript

$img contains the name you want.

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