php FILE POST upload without save

前端 未结 6 2391
深忆病人
深忆病人 2021-02-18 23:49

I am using a plain text file in a PhP script. Is there any way to process the file in the PhP script without saving it locally? Everywhere I see simply uploading a file and sav

6条回答
  •  离开以前
    2021-02-18 23:55

    You could just use $_FILES["file"]["tmp_name"] which would be the temp file that was uploaded. Once your script is done running, PHP should even clean up after itself and delete the temp file.

提交回复
热议问题