我正在使用jquery插件上传,我想自定义delete
文件进程。因此,出于某种原因,我必须设置$_REQUEST['file']
。但是,我管理上传的方式,我上传了一些文件,我得到了服务器的网址。因此,当我触发delete
button
时,我没有设置input
file
。那么如何使用url
设置一些输入文件,以便$_REQUEST['file']
不会为空,并且会带有正确的网址?
我尝试设置.input-delete
,<input type="file" class="input-delete">
,$('.input-delete').val(url);
的某些InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable
的值,但我收到此消息<input type="file" class="input-delete"/>
编辑:
我有这个
url
从ajax请求我得到一些('.input-delete').val(url);
,并作为回调我放
{{1}}