HTML/PHP File Upload

后端 未结 5 1254
隐瞒了意图╮
隐瞒了意图╮ 2020-12-19 21:46

So i want the user to only be able to upload docs or docx\'s. So first here\'s my html:

5条回答
  •  庸人自扰
    2020-12-19 21:56

    1. Try to use $_FILES["img"] array to access uploaded file properties (your "Select a file" input called "img").

    2. You may use "Location" http header to redirect back to source page.

提交回复
热议问题