How to insert file upload content to database by sending base64 encoded file content via json?

前端 未结 0 369
感动是毒
感动是毒 2021-01-30 17:37

From my php page I send file upload content as

$imgData = addslashes(file_get_contents($_FILES[\'userImage\'][\'tmp_name\']));
$imgData= base64_encode($imgData);
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题