0

In codeigniter when i submit a html form with image upload it give me an compile warning it run on local ok but on cpanel it give this error

A PHP Error was encountered

Severity: Compile Warning

Message: Unexpected character in input: '' (ASCII=14) state=0

Filename: lib/rules.php

Line Number: 889

Backtrace:

this is my form

<form action="<?= base_url();?>admin/test" method="post" enctype="multipart/form-data">
    <input type="file" name="staff_images">
    <input type="submit" value="submit">
</form>

and this is my method

public function test(){
    $this->load->view('test');
}
anmol
  • 1
  • does this happen with all images, or just one specific? – Vickel Jan 25 '21 at 11:36
  • only less size images properly uploads like less than 20kb this size also not fix but on local all size images upload – anmol Jan 25 '21 at 12:11
  • see: [Change the maximum upload file size](https://stackoverflow.com/questions/2184513/change-the-maximum-upload-file-size) and https://support.cpanel.net/hc/en-us/articles/360050872453-How-to-increase-the-maximum-file-upload-size-limit-in-PHP – Vickel Jan 25 '21 at 12:25

0 Answers0