File upload verification |
Hi GotExx,
I run your code and it works fine for me. If you get error message saying "Archive file is not a valid uploaded file." it means uploaded[archiveFile] validation fails. It has nothing to do with MIME types, as then it would tell you "Archive file does not have a valid mime type". You can check it yourself if you first remove uploaded[archiveFile] validation from your code and run it - it should pass OK. Then change mime_in[archiveFile,application/x-gzip] into mime_in[archiveFile,application/anything] and you will see "Archive file does not have a valid mime type". error message. So you have to analyze why uploaded[archiveFile] validation fails. This validation rule calls isValid() function that will fail if anything from the following list occurs (as per official docs, https://codeigniter4.github.io/userguide...ht=isvalid):
|
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
|