Supporting HTTP 100 Continue with PHP

后端 未结 2 747
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-07 12:21

I\'m working on a PHP webapp that accepts large POSTed file uploads from specific clients and would like to accept or reject these uploads (based on various headers and other fa

2条回答
  •  -上瘾入骨i
    2021-02-07 13:11

    Unfortunately I don't think this is possible. If this is a real requirement, I think it's best to simply look at other languages. I think today heterogeneous environments are more common than when this question was written, so why not create a small service written in some other language that just deals with the upload.

    But yea, the way PHP works is that the script only starts when the entire request is sent by the client.

提交回复
热议问题