Run a shell command when a file is added

前端 未结 6 545
梦毁少年i
梦毁少年i 2020-11-27 20:04

I have a folder named images on my linux box. This folder is connected to a website and the admin of the site has the ability to add pictures to this site. However, when a

6条回答
  •  天命终不由人
    2020-11-27 20:21

    If the file is added through an HTTP upload, and if your server is apache, you might want to check mod_security.

    It enables you to run a script for every upload made through HTTP POST.

提交回复
热议问题