Welcome Guest, Not a member yet? Register   Sign In
File upload verification
#3

Hi zahhar,

Thank's for your reply.

Ok I've increase the upload_max_filesize in php.ini to 1G but when i remove the first rule uploaded[archiveFile], i simply get the second error : Archive file does not have a valid file extension by ext_in[archiveFile,gzip] rule.

When i also remove the mime_in[archiveFile,application/x-gzip] rule i get the third error: Archive file does not have a valid mime type.

I've also try to remove all the rules and only put this:
PHP Code:
$validation->setRule('archiveFile''Archive file''is_image[archiveFile]'); 
and use a PNG image in my form, I get Archive file is not a valid, uploaded image file. As if the webserver can't correctly define the mime type..

For information this is my configuration:
  • PHP 7.3.1
  • Red Hat 7
  • CI4-rc3
Thank's again !
Reply


Messages In This Thread
File upload verification - by GotExx - 02-25-2020, 10:05 AM
RE: File upload verification - by zahhar - 02-25-2020, 11:26 AM
RE: File upload verification - by mdahmke - 06-15-2023, 06:03 AM
RE: File upload verification - by GotExx - 02-26-2020, 04:14 AM
RE: File upload verification - by zahhar - 02-26-2020, 08:04 AM
RE: File upload verification - by 12idho - 09-01-2021, 04:44 PM
RE: File upload verification - by InsiteFX - 09-02-2021, 04:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB