Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Gaia Clary

    (@gaia-clary)

    ok, after browsing on the web i finally found a way to get this working.
    I added a function to our theme:

    add_filter('upload_mimes', 'custom_upload_mimes');
    function custom_upload_mimes ( $existing_mimes=array() ) {
        $existing_mimes['dae']   = 'model/vnd.collada+xml';
        $existing_mimes['blend'] = 'application/octet-stream';
        return $existing_mimes;
    }

    However couldn’t this be added by the wpas plugin somehow ?
    It could check which mimetypes are available and then add the missing filetypes.

    hmm, then maybe the allowed filetypes would need to be expressed in more detail, like this for example:

    jpg,jpeg,png,gif,zip,blend:application/octet-stream,dae:model/vnd.collada+xml

    Plugin Author julien731

    (@julien731)

    This sounds like a bug. You should be able to upload the same file types from the back-end and the front-end. I’ll have a look at it and fix what needs to be.

    This is not yet fixed, is it?

    edit: no, it isn’t. still broken. The fix shown above using the filter still works though.

    same problem here.

    Worst part is that the post is not rejected. It is just posted without the attachments and customers assume it has worked but they just can’t see the attachment.

    Hello – similar problem : I can’t SEE uploaded files at all. You can attach and upload, but neither ticket-backend nor frontend show these attachments.

    Any Idea ?

    Thanks ! Cheers !

    Plugin Author julien731

    (@julien731)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Upload for custom file types only by admins ?’ is closed to new replies.