【PHP】 上傳檔案 $_FILES["file"]["name"] 介紹

html:

<input type="file" name="Filedata" accept="image/*" capture="camera" >


PHP:

$_FILES["Filedata"]["name"]

第一個變數是html那邊的input name
第二個參數有多個選項可以選擇,如name,error,size 等

留言

這個網誌中的熱門文章

線上打卡系統 [PHP] 免費使用

網站的留言功能,直接用LINE通知! (Line Notify 教學) (1)

利用前端壓縮圖片 (js 搭配 php)