In the script I’m using, I moved ‘upload_avatar.php’ and ‘inner_upload_avatar.htm’ from a Folder into the public_html and public_html/templates folder respectively.
They work successfully there. The only thing I changed on ‘upload_avatar.php’ was this:
include_once ('..classes/config.php');
include_once ('..classes/sessions.php');
to this:
include_once ('classes/config.php');
include_once ('classes/sessions.php');
But, the only thing that doesn’t work is the unsuccessful messages.
When an image uploads successfully “Request has been completed” appears.
But when I upload a non-image file type, or file too large, I see nothing.
The script before I moved it shows" File dimensions error", or “File type not allowed”. I’m stumped as to why those messages don’t appear.
I’ve attached upload_avatar.php. If you could help me figure out why this is the case, or suggest a simple work around, I’d greatly appreciate it. (Also, I know this code is old). Thanks.
upload_avatarPhp.txt (12.6 KB)