I have a form that load the data and then updates. It works fine.
I want to change the name of the image that is saved in DB.
After submit the form i have:
The name that is saved in DB is "20150423151457_iva.jpg" but what i want is "images/contactos/20150423151457_iva.jpg"
How can i do this?
I want to change the name of the image that is saved in DB.
After submit the form i have:
Array
(
[image] => Array
(
[name] => 20150423151457_iva.jpg
[original_name] => iva.jpg
[path] => /var/www/html/images/contactos/20150423151457_iva.jpg
[size] => 3618
[link] => http://www.eseig.ipp.pt/images/contactos/20150423151457_iva.jpg
)
)
The name that is saved in DB is "20150423151457_iva.jpg" but what i want is "images/contactos/20150423151457_iva.jpg"
How can i do this?