userland multipart/form-data handler

前端 未结 3 1957
谎友^
谎友^ 2020-12-03 06:28

I\'m looking for a drop-in include script / class that dissects multipart/form-data and fills up $_POST(+raw) and $_FILES from it. Usu

3条回答
  •  死守一世寂寞
    2020-12-03 06:35

    Maybe a new php.ini directive enable_post_data_reading could help, but it seems it was added in PHP 5.4, I still have the earlier version so could not test it :(

    From PHP Manual:

    enable_post_data_reading boolean

    Disabling this option causes $_POST and $_FILES not to be populated. The only way to read postdata will then be through the php://input stream wrapper. This can be useful to proxy requests or to process the POST data in a memory efficient fashion.

提交回复
热议问题