Hello and thanks in advance.. I have an edit page that consists of fields to update and and image text box for an image file name and a file text to upload the image.
When I update the regular field everything works fine. When my code get to the image upload, it checks to see if we are uploading a new image. If we are it will copy the file. If not, it should not copy the file. I am getting an error when we are not uploading a file. It is still trying to copy something that we are not uploading. Here is the code below to tell whether or not there is an image to upload.
If ($PropertyImage != "")
{
copy ("$PropertyImage", "/home/ejfweb/ejfrealestate-www/images/houseimages/$ImageName");
}
My propertyimage box from the previous page is blank so we are uploading a new image. Can someone tell my why I am getting this error if it not supposed to copy. Does it have anything to do with a null value and if so how do I fix that?
Warning: Unable to open 'none' for reading: No such file or directory in /home/ejfweb/ejfrealestate-www/EJFAdmin/listproperties.php on line 16