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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -