如何 - 檔案上傳按鈕
瞭解如何使用 HTML 建立檔案上傳按鈕。
點選“選擇檔案”按鈕上傳檔案
檔案上傳
示例
<form action="/action_page.php">
<input type="file" id="myFile" name="filename">
<input type="submit">
</form>
自己動手試一試 »
瞭解如何使用 HTML 建立檔案上傳按鈕。
點選“選擇檔案”按鈕上傳檔案
<form action="/action_page.php">
<input type="file" id="myFile" name="filename">
<input type="submit">
</form>
自己動手試一試 »
如果您想將 W3Schools 服務用於教育機構、團隊或企業,請傳送電子郵件給我們
sales@w3schools.com
如果您想報告錯誤,或想提出建議,請傳送電子郵件給我們
help@w3schools.com