By default, WordPress does not impose any limitation on what you can upload. Any existing limitations come from your host server’s configuration. Try contacting your hosts and asking them about these files.
Thread Starter
xukyo
(@xukyo)
Host server support is not answering but I have no issue uploading a stl file on the host server with Filezilla and play with it. Only when I use wordpress.
Thread Starter
xukyo
(@xukyo)
Response from server host support is that there is no limitation regarding file upload
Thread Starter
xukyo
(@xukyo)
It appears that it is known that wordpress displays an error when uploading some files. I couldn’t find a solution installing addd-ons to allow other mime type.
I even tied to modify function.php as follow
// Ajout d’un nouveau filtre
add_filter(‘upload_mimes’, ‘addUploadMimes’);
// Ajout de nouveaux format de fichier pour l’upload
function addUploadMimes($mimes)
{
$mimes = array_merge($mimes, array(
‘stl|stp|step|’ => ‘application/octet-stream’
));
return $mimes;
}
Still the same error message: “this type of file cannot be upload for security reason”
Any work-around please?