• Resolved luchins

    (@luchins)


    I have installed WP File Manager version 21.0 and WP File Manager PRO version 20.0. When I try to load a file from the Front-End, the screen opens for me to select the file to load and then nothing happens. the file is not loaded.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author N-Media

    (@nmedia)

    Hi,

    Make sure you don’t have any JS errors or conflicts with other plugins or themes. You can see in the console.

    WP Frontend File Manager
    ————
    Second picture not upload. I have get js error in fileupload.js:406:32
    I add console.log(resp);

    Object { status: "error", message: "Title & Detail is required field" }
    ?message: "Title & Detail is required field"
    ?status: "error"
    ?<prototype>: Object { … }
    fileupload.js:401:9
    Plugin Author N-Media

    (@nmedia)

    Ok I see, it clearly shows that the title and descriptions are nulled.

    I add title and descr. First img sucess upload but second – failed.

    files.php row 439 $_REQUEST[‘uploaded_files’] – saved in file
    https://prnt.sc/26q6f75
    1 – upload first img
    2 – upload second img

    Plugin Author N-Media

    (@nmedia)

    Thanks for the sharing. What is this [dataurl] key inside the request? Are you using any other custom script or anything?

    files.php row 437

    //merging all file title and description in each array
    	$all_files_with_data = array();
    	$uploaded_files = array_map( function($file_data){
    		
    		$arr = array( 'br' => array(), 'p' => array(), 'strong' => array() );
    		$file_data['file_group']	= isset($file_data['file_group']) ? array_map('sanitize_text_field', $file_data['file_group']) : '';
    		$file_data['filename']		= sanitize_text_field($file_data['filename']);
    		$file_data['title'] 		= sanitize_title($file_data['title']);
    		$file_data['file_details']	= wp_kses($file_data['file_details'], $arr);
    		return $file_data;
    	}, $_REQUEST['uploaded_files'] );

    // my code begin
    $filename = ‘{{path}}/debug.txt’; –
    $handle = fopen($filename, ‘a+’);

    /* screen prev message https://prnt.sc/26q6f75
    and i dont no what is this [dataurl] key inside the request and how did it get into $_REQUEST[‘uploaded_files’]
    */
    fwrite($handle, print_r($_REQUEST[‘uploaded_files’], TRUE));
    fclose($handle);
    // my code end

    foreach($uploaded_files as $key => $file){

    Plugin Author N-Media

    (@nmedia)

    Well, I don’t know what is the purpose of this code, but you must have filled the title and description keys.

    Guys! Do you have a new person come to work every day and write what he likes?
    I have a problem with your plugin (free version) – second image not upload.
    I tryed and get this mistake on 2 sites.
    Read carefully what I write – you do not have a working plugin

    Plugin Author N-Media

    (@nmedia)

    Hi,

    sorry for the inconvenience, in the free version you can only have one file/image at a time.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘File not loaded’ is closed to new replies.