Image field not working on AWS


I’ve added an image field in one of my modules which is working well on my local windows system. But when I upload it on AWS, a textbox is showing up instead of the image filed. Adding “type = file” in the editviewdef.php shows the image field but it doesn’t save and display the image. Permissions don’t seem to be the issue.