Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Upload docx files

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33008
    XaviJr
    Participant
    
    $uploads_dir = '../uploads/';

    if( $_FILES == 0 ){
    if( move_uploaded_file( $_FILES, $uploads_dir.$_FILES ) ){
    echo 'ok';
    exit();
    }
    }
    echo 'error';
    exit();
    ?>

    That’s the code i have to upload CV’s on my website, and it works fine for doc and pdf files. The problem is the most recent version of Word files, it gives me an error.

    Can anyone help me solving this problem please?

    Thank you in advance.

    #73935
    ddliu
    Member

    Any PHP errors/warnings thrown?
    Add


    error_reporting(E_ALL);
    ini_set("display_errors", 1);

    to see if there’re any other messages.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.