I created a page that can add new records to my database, everything is working fine but when I\'m trying to upload a pdf file, it doesn\'t store to the correct folder. It shoul
That's because you set only to save file name
$file = $_REQUEST['file'];
Instead it should be
$file = "../uploads/".$_REQUEST['file'];