Detecting whether a file is complete or partial in PHP

前端 未结 5 1110
时光说笑
时光说笑 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:12

    In theory, in case you are allowed to run system commands from PHP you can try to get the pids of your sftp server processes with pidof command and then use lsof output to check if open file descriptors exist for the currently checked upload file.

提交回复
热议问题