开发者

Upload file to remote server using ajax

开发者 https://www.devze.com 2023-01-11 00:14 出处:网络
I don\'t have any control on the server side.. is it possible to upload and load the results given by the remote server in an Iframe ?

I don't have any control on the server side.. is it possible to upload and load the results given by the remote server in an Iframe ? please share some code..开发者_JAVA百科 Thanks


Declare the iframe with a name and target that name in your form element:

<form action="http://url.to.server" enctype="multipart/form-data" target="resultsFrame">
    <input type="file" />
    ...
</form>

<iframe src="blank.html" name="resultsFrame"></iframe>
0

精彩评论

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