简体   繁体   English

精美的上传器-通过表单而不是AJAX提交

[英]Fine Uploader - Submit by Form instead of AJAX

I have got on page Instance of Fine Uploader. 我在页面上有Fine Uploader的实例。 My file is uploaded to a server by AJAX, but I want to have got similar behavior to normal HTML Input File, and Input Submit because I want to have got access to $_FILES in new response. 我的文件是通过AJAX上传到服务器的,但是我希望具有与普通HTML输入文件和输入提交类似的行为,因为我希望可以在新响应中访问$ _FILES。

Is this possible? 这可能吗?

If you know the location of the file after the AJAX upload, why not use file_get_contents function to retrieve the file in your response? 如果您知道AJAX上传后文件的位置,为什么不使用file_get_contents函数在响应中检索文件?

Unless you can tell us why you need to specifically use the $_FILES global? 除非您能告诉我们为什么需要专门使用$ _FILES全局变量?

Of course you will have to get the file name from your AJAX upload, but that can be returned and used in the AJAX response. 当然,您必须从AJAX上传文件中获取文件名,但是可以将其返回并在AJAX响应中使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM