Detecting whether a file is complete or partial in PHP

前端 未结 5 1135
时光说笑
时光说笑 2021-02-19 22:24

In this system, SFTP will be used to upload large video files to a specific directory on the server. I am writing a PHP script that will be used to copy completely uploaded file

5条回答
  •  梦如初夏
    2021-02-19 23:01

    As @jcolebrand stated - if you have no control over upload process - there is actually not much you can do except guessing (size/date of file). I would look for a server software that allows you to execute hooks/scripts before/after some server action (here: file transfer complete). I am not sure though whether such software exists. As a last resort you could adapt some opensource SFTP server for your requirements by adding such a hook for yourself.

提交回复
热议问题