Authentication and Authorization

profileKingZone Deft
movie-update.php

<?php $dir = "./static/upload/"; if (!is_dir($dir)){ mkdir($dir, 0777); }; $imgname = date("YmdHis").rand(1000,9999) ; $tmp = $_FILES['file']['tmp_name']; move_uploaded_file($tmp, $dir . $imgname ); $url = $dir.$imgname ; header('Content-Type:application/json; charset=utf-8'); $arr = ["code"=>200,"msg"=>"success","data"=>["url"=>$url]]; exit(json_encode($arr,JSON_UNESCAPED_UNICODE));