Getting complete PATH of uploaded file - PHP

后端 未结 5 1670
-上瘾入骨i
-上瘾入骨i 2020-11-28 12:57

I have a form(HTML, PHP) that lets the end user upload a file to update the database(MySQL) with the records in the uploaded file(specifically .csv). However, in the phpscri

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 13:25

    Use the following code,

    $handle = fopen($_FILES["UploadFileName"]["tmp_name"], 'r');
    

提交回复
热议问题