javascript - Passing an Image to the backend with angularjs

one text

Solution:

when you upload a file to a php enabled web-server, it temprorly stores the file at a path upload_tmp_dir you specified in php.ini. During the script execution, you can either move or copy this file to your desired location (like project folder). After the executions ends the file gets removed from the temp_dir automatically.

you can get this path via $_FILES["file"]["tmp_name"] and then you can use functions like move_uploaded_file to move this file or copy to copy this file to your project directory.

Source