PHP read from uploaded text file?

后端 未结 3 1816
抹茶落季
抹茶落季 2021-01-31 03:25

If I upload a text file via a form, is it possible to output its contents directly from the $_FILES variable rather than saving it onto the server first? I know this is a secur

3条回答
  •  自闭症患者
    2021-01-31 03:49

    Unfortunately, no. At least not through the $_FILES variable. Sorry.

    EDIT: It is always saved as the temp file in $_FILES and you'll always have to use that one for content.

提交回复
热议问题