开发者

Can a upload form upload files to another server?

开发者 https://www.devze.com 2023-04-03 23:30 出处:网络
Is it possible to have a HTML form on server A and have it upload content to server B? Can this be achieved? I am trying to use an iframe with the form starting on the other server, but I need inform

Is it possible to have a HTML form on server A and have it upload content to server B?

Can this be achieved? I am trying to use an iframe with the form starting on the other server, but I need informa开发者_StackOverflow中文版tion passed to the form from server A. Would I have to use javascript?

Thank you for your help!


As long as you're sending it via POST and your remote server is accepting that POST response, sure. No need for javascript, just set the form action to the remote server.


You can but the server b has to accept the upload. It has to be done on the server side. Using php or equivalent.

Here is a great tutorial

http://www.tizag.com/phpT/fileupload.php

0

精彩评论

暂无评论...
验证码 换一张
取 消