WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms Advanced File Uploader
[resolved] File types (3 posts)

  1. karll10
    Member
    Posted 4 months ago #

    Hi,

    Is the file type .wav allowed, im getting an error message when trying to upload that type of file?

    Also is there a way of using an ftp to upload the files through gravity forms?

    Cheers..

    https://wordpress.org/plugins/gravity-forms-advanced-file-uploader/

  2. karll10
    Member
    Posted 4 months ago #

    I have tried everything and i cannot get this to work at all, any help would be much appreciated as i have been looking for something like this for ages, cheers...

  3. ben.moody
    Member
    Plugin Author

    Posted 4 months ago #

    Hi

    There are two issues here:

    1. The error is due to the malformed file name. The name has both a . (dot) and a - (dash) in it this causes an error with plupload.

    2. The wav file you passed has a mime type of audio/x-wav. WordPress's list of allowed safe file types only registers audio/wav.

    You will have to add your custom mime type using one of my plugin's filters. Add this to your functions.php file in your theme:

    add_filter( 'prso_adv_uploader_reject_mimes', 'prso_uploader_add_mime' );
    function prso_uploader_add_mime( $allowed_mime_types ) {

    $allowed_mime_types['wav'] = 'audio/x-wav';

    return $allowed_mime_types;
    }

    This should sort you out.

    Thanks

    Ben

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.