• Hi,

    I’d like to upload and display STL files (and other 3D files) on my web site. I wasn’t able to do so with the existing add-ons and I did not find any solution on the forums. An error keep showing up saying that for security reason the file cannot be uploaded. Did I miss something?

    Thanks in advance for your help

    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Upload and diplay’ is closed to new replies.