How to fake $_FILES and fool move_uploaded_file()?

落爺英雄遲暮 提交于 2019-12-11 11:55:22

问题


I'm extending a custom platform which does 500+ lines of tests on an uploaded file. I don't want to copy-paste those tests because of future updates.

Can I do anything else besides calling the page from within itself but with image upload via cURL?


回答1:


I ended up resubmitting $_POST vars from within the same page to itself, via cURL.



来源:https://stackoverflow.com/questions/12269913/how-to-fake-files-and-fool-move-uploaded-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!