When doing Fireware upgrade on the page, the control used is
<input type=file name=firmware>
Copy after login
However, the input button created in this way can only select local files.
Please tell me, how can I select a remote file for upgrade. For example, the file url= http://www.test.com/ttt/fireware.bin?
I tried changing the value of input, but it didn’t work. When the page is submitted, the local file will still be uploaded, but the file in the value will not be uploaded.
The feasible method now is to click input to pop up the "Open" page, and in the "File Name" column, output the URL of the remote file, which can be successful.
But the master said that it will be automatically upgraded when the time comes, which means that you cannot enter the URL manually.
I wonder if it can be achieved by changing the input value?
Reply to discussion (solution)
The file control can only allow users to select files for upload. If you want to upload files from other sites, you can only download them. Then upload
You should use php to get the remote file path, and then paste the path directly into the input. . .
You should copy the remote address into it. If the input tag of the client browser can select another server, that would be too powerful
You should copy the remote address into it. If the input tag of the client browser can be selected from another server, that would be too powerful
When you say "copy in", where do you mean copying in? ? ? Is it the value of the input? ?