CodeIgniter Forums

Full Version: Upload error with p7m files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone,
I am experiencing errors when uploading files with p7m extension.

The Browser sees the files as "application/pkcs7" (tried both with Google Chrome and Mozilla Firefox), inside the file mimes.php instead are identified as "application/pkcs7-mime", "application/x-pkcs7-mime".

I tried to add the extension in the array but I always get the error: "The filetype you are attempting to upload is not allowed.".

I've done numerous tests, modifications, etc... but I still haven't found a solution.

Any advice/suggestion?
Just add this one to the Mimes.php file.
"pplication/pkcs7"
(01-12-2021, 12:33 PM)InsiteFX Wrote: [ -> ]Just add this one to the Mimes.php file.
"pplication/pkcs7"

As I indicated in my previous post:

Quote:I tried to add the extension in the array but I always get the error: "The filetype you are attempting to upload is not allowed.".
I do not think that this is going to work at all because it is an encrypted s-mime type
for emails etc;.