• I love this plugin for what it does, and it does it very well. Unfortunately, when activated, I am unable to upload anything other than images. If I deactivate the plugin, I can upload anything, but of course I want to keep the plugin activated for what I does so well.

    Is there a tweak I can make to the code that will allow me to keep the plugin activated and allow me to upload documents other than images?

    Notes:
    I am using the latest WordPress version as of this post, 6.0.1, multisite. The upload problem occurs regardless of whether I have the plugin activated for the network or activated for the site I am uploading files to. My website is currently under development using Xampp running on Windows.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor hemenderki

    (@hemenderki)

    Hello,

    Thank you for reaching out. This plugin is indeed designed to allow any file format that WordPress allows. What file format exactly are you trying to upload?

    Thread Starter cnyrpdbwebmaster

    (@cnyrpdbwebmaster)

    Thank you for your quick response.

    The upload fails for PDFs. This is the error:
    Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.

    Using the browser uploader option, I get a more useful error message:
    Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given in C:\xampp\htdocs\cnyrpdb.org\wp-content\plugins\better-images\better-images.php:395 Stack trace: #0 C:\xampp\htdocs\cnyrpdb.org\wp-includes\class-wp-hook.php(307): wnbi_wp_handle_upload_prefilter(Array) #1 C:\xampp\htdocs\cnyrpdb.org\wp-includes\plugin.php(191): WP_Hook->apply_filters(Array, Array) #2 C:\xampp\htdocs\cnyrpdb.org\wp-admin\includes\file.php(802): apply_filters('wp_handle_uploa...', Array) #3 C:\xampp\htdocs\cnyrpdb.org\wp-admin\includes\file.php(1074): _wp_handle_upload(Array, Array, '2022-08-02 11:2...', 'wp_handle_uploa...') #4 C:\xampp\htdocs\cnyrpdb.org\wp-admin\includes\media.php(303): wp_handle_upload(Array, Array, '2022-08-02 11:2...') #5 C:\xampp\htdocs\cnyrpdb.org\wp-admin\media-new.php(33): media_handle_upload('async-upload', 0) #6 {main} thrown in C:\xampp\htdocs\cnyrpdb.org\wp-content\plugins\better-images\better-images.php on line 395

    Plugin Contributor hemenderki

    (@hemenderki)

    Hello @cnyrpdbwebmaster!

    I can confirm that this is a bug. We’ll take a look at it and fix it in an upcoming release.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin does not allow upload of anything other than images’ is closed to new replies.