A PHP Error was encountered

Severity: Notice

Message: Undefined index: file

Filename: controllers/ajax.php

Line Number: 26

{"message":"Only JPG files are allowed.","message_type":"error"}