Welcome Guest, Not a member yet? Register   Sign In
File upload validation fails for uploaded rule
#3

(11-23-2022, 10:00 PM)ozornick Wrote:
PHP Code:
$files $this->request->getFiles() ; 
Dump this $files and read manual, get real error exception messageĀ https://codeigniter4.github.io/CodeIgnit....html#id14
and bug test button !empty('string') - its error notice

Hi,
Thanks for your suggestion.
I tried to get file errors but according to file message and error code 0 (zero), there is no error with the file yet it fails to pass the validation still.
I'm kinda stumped as to why it is failing.
Any other suggestions are much appreciated.
Thank you.

PHP Code:
$file $this->request->getFile('sky_csv_file');
 echo 
$file->getErrorString(); /*returns: The file uploaded with success.*/
echo $file->getError(); /*returns: 0*/ 
Reply


Messages In This Thread
RE: File upload validation fails for uploaded rule - by josh2112o - 11-29-2022, 12:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB