Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/238.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用现有服务器文件模拟表单上传jquery_Javascript_Php_Jquery - Fatal编程技术网

Javascript 使用现有服务器文件模拟表单上传jquery

Javascript 使用现有服务器文件模拟表单上传jquery,javascript,php,jquery,Javascript,Php,Jquery,我这里有一张表格: 我需要将上传部分更改为自动上传方式 这意味着我的服务器上有这些文件,我想要将stl文件更改为云端图像的功能 所以我想,如果我通过一个表单自动发布文件的url,它可以生成该图像 <form id="form" method="POST" action="posthandler.php" enctype="multipart/form-data" border="1px"> <table> <tr><

我这里有一张表格:

我需要将上传部分更改为自动上传方式

这意味着我的服务器上有这些文件,我想要将stl文件更改为云端图像的功能

所以我想,如果我通过一个表单自动发布文件的url,它可以生成该图像

<form id="form" method="POST" action="posthandler.php" enctype="multipart/form-data" border="1px">  
        <table>
        <tr><td>
        <img id="stl2image" src="css/images/image_100x100.png" alt="STL to Image !" width="100px" height="100px">
        </td>   </tr>
        <tr><td>
        Upload Your STL file here.
        </td></tr>
        <tr><td>
        <img id="loading" src="http://sampsonresume.com/labs/pIkfp.gif" alt="Please wait.." />
        <label for="file">Filename:</label>
        <input type="file" name="file" id="file"/>
        </td></tr>
        </table>
        </form>

在这里上传你的STL文件。
文件名:
但文件已上载到我的服务器上:


我不需要上传浏览,我只需要脚本来自动发布我的url

,到目前为止您尝试了什么?我尝试将输入类型更改为文本并发送url,但我无法成功。