Uploading file on the wrong folder with PHP -
i'm uploading pictures using angularjs , php. on server side, code looks this:
<?php $filename = $_files['file']['name']; $destination = '/home1/cccctang/public_html/miquelimarc/uploads' . $filename; move_uploaded_file( $_files['file']['tmp_name'] , $destination ); ?>
even folder seems defined, keeps uploading files root folder (where .php file is).
what missing?
you forget write /
$destination = '/home1/cccctang/public_html/miquelimarc/uploads/' . $filename;
Comments
Post a Comment