I am facing the weird problem of image uploading. Currently we have changed our server and domain of the project, in which everything is working on php Codeigniter, once we shifted our project to the new server the $_FILE['imageName'] is not working on the new server and it is showing the null value inside of $_FILE['imageName']. I think it's some settings issue that's why file data is not uploading and not showing inside of $_FILE['imageName'] and it was 100% working fine on our previous server. Can anybody help us for getting rid of this issue. Thanks :)
Image: Error Message on new server against $_FILE['imageName'] and Null data
Image: In our old server $_FILE['imageName'] is showing data 100% fine
This is the code on both files:
<?php
var_dump($_FILES['imageName']);
?>
<form action="" method="post" enctype="multipart/form-data">
Select image to upload:
<input type="file" name="imageName" id="fileToUpload">
<input type="submit" value="Upload Image" name="submit">
</form>