• Resolved Billiam001

    (@billiam001)


    Hello,

    Despite setting all available file types in the frontend-loader settings to enabled, I still get the following error:
    “This kind of file is not allowed. Please, try again selecting other file.: Test.docx”

    I have double checked and the “docx” extension is still enabled when revisiting the settings page after saving, which is good. However any of those file types other than images throw the not allowed error.
    Any help is appreciated.

    http://wordpress.org/plugins/frontend-uploader/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Rinat

    (@rinatkhaziev)

    Hey,

    Try adding this to your theme’s functions.php and see what exact MIME-type your file has (it will be added to the error notice.

    add_filter( 'fu_is_debug', '__return_true' );

    Error message should look like:

    This kind of file is not allowed. Please, try again selecting other file.:
    File name: cos-fo-comp.psd
    MIME-TYPE: image/vnd.adobe.photoshop

    Let me know what’s the mime type.

    Thread Starter Billiam001

    (@billiam001)

    Thanks for the quick reply.

    Using the same file as before the error message is now:
    This kind of file is not allowed. Please, try again selecting other file.:
    File name: Test.docx
    MIME-TYPE: application/octet-stream

    Plugin Author Rinat

    (@rinatkhaziev)

    Hey,

    application/octet/stream is a fallback mime-type if a browser doesn’t set mime-type properly when sending a file.

    Can you try to test it in a different browser?

    If the problem persists that means it’s a server misconfiguration where server sets mime-types incorrectly.

    Thread Starter Billiam001

    (@billiam001)

    Hello, I was able to resolve this problem. Thanks for your help.

    I need to have the files uploaded to a folder other than “uploads” is there a relatively easy way to accomplish this?

    Thread Starter Billiam001

    (@billiam001)

    Marked as solved and started a new thread for the directory question.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Allowed File Types Not Actually Being Allowed’ is closed to new replies.