php how to test if file has been uploaded completely

后端 未结 11 1539
耶瑟儿~
耶瑟儿~ 2021-02-01 15:24

Is there any way to check if file has been uploaded completely on the server? My scenario: User uploads file over ftp and my other PHP task is running in cronjob. Now I would li

11条回答
  •  鱼传尺愫
    2021-02-01 16:09

    Agreed with Hasan. You can check it by using php's file_exist function.

    save your filename which your and getting while user uploading a file (or a renamed file if you are renaming it) to any table in database. Now your cron will get that name from database table each time it runs and will check if that file had been uploaded or not.

    
    

提交回复
热议问题