• Hey there

    I have been able to add the plugin to my page. However when I click the choose file button and select a file it doesnt get attached. Please can you help?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same here. Just tested the plugin but it throws a couple of JS errors in the console when loading the page “Cannot set property of ‘undefined'” for various variables.

    When clicking the “select file” button and choosing a file the textfield that should show the file name remains empty and the upload button remains disabled.

    EDIT: it happens, when the shortcode is inserted in Elementor. See https://nord-liebe.de/upload

    The upper shortcode was added in Gutenberg, and then the page was edited with Elementor where I added the same shortcode in an Elementor text element. The second upload widget doesn’t work.

    • This reply was modified 3 years, 5 months ago by superninchen. Reason: Added addtitional info
    Plugin Author nickboss

    (@nickboss)

    Hi, first of all, since you have two upload instances on the page, they need to have different upload ID. You can change this from the visual editor of each upload form (or just put uploadid="2" in the second shortcode).

    In order to correct the Javascript error, put the following code in functions.php file of your theme, or preferably install Code Snippets plugin and put it in a new snippet:

    if (!function_exists('wfu_after_upload_handler1')) {
    	function wfu_file_upload_output_handler1($cont) {
    		$ch = '&'.'#'.'038;';
    		$cont = str_replace($ch.$ch, '&&', $cont);
    		return $cont;
    	}
    	add_filter('the_content', 'wfu_file_upload_output_handler1', 100);
    }

    Regards

    Nickolas

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Upload File Button not Working’ is closed to new replies.