• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get uploaded file data in CI 4

#2
All of the parameters are in the $_FILES[] array.

PHP Code:
$file_name     $_FILES["photo"]["name"]; 
$file_type     $_FILES["photo"]["type"]; 
$file_size     $_FILES["photo"]["size"]; 
$file_tmp_name $_FILES["photo"]["tmp_name"]; 
$file_error    $_FILES["photo"]["error"]; 

Where photo would be the input name.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Get uploaded file data in CI 4 - by webdevron - 09-18-2019, 01:36 AM
RE: Get uploaded file data in CI 4 - by InsiteFX - 09-18-2019, 03:50 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.