Reply to Re: Update fields but keep previous image

Re: Update fields but keep previous image new!
by colin, 7 years ago
There are several things wrong with your code. If there is no uploaded files, $imagenNoticia is not empty. It is an array, with an error code. See http://php.net/manual/fr/reserved.variables.files.php

And then, you cannot store an upload object in $_POST['imagenNoticia-guardada']. Here, at best, you can keep the image file name, which you then will push back into your database.

Anyway, your issue is not related to the class itself, it is a PHP issue.Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important