I have a remote file address: convert to $ _ FILES without submitting a form? I have a remote file address:
Localhost/1.zip
I have a function for uploading FILES. by default, FILES are uploaded using the POST method, and $ _ FILES must be input.
How can I change this 1.zip file to $ _ FILES without submitting a form?
Reply content:
I have a remote file address:
Localhost/1.zip
I have a function for uploading FILES. by default, FILES are uploaded using the POST method, and $ _ FILES must be input.
How can I change this 1.zip file to $ _ FILES without submitting a form?
@ Hoyt cannot be implemented. even if it is implemented, this is not a scientific solution. if you just want to upload a remote file to another site, simply use CURL.
When you encounter a problem and find that there is no solution, you should first think about whether the demand is too strange, or whether your design is flawed or unreasonable, for example, if you use the file upload function to remotely download files, you should not upload files but download files, and then store them in a unified manner,
The landlord can look at this idea of solving the problem x-y problem http://coolshell.cn/articles/10804.html
Can refer to this: http://blog.csdn.net/xuzuning/article/details/7444709