使用javascript将文件输入到php文件
16lz
2021-01-22
is any way to post the image object to php file using javascript that can be alternative for the regular way of uploading image using (enctype="multipart/form-data") ?
有什么方法可以使用javascript将图像对象发布到php文件,这可以替代常规的上传图像方式(enctype =“multipart / form-data”)?
I had successfully post values of input text boxes using ajax, any way to post input file fields ?
我已经使用ajax成功发布输入文本框的值,以任何方式发布输入文件字段?
Thanks
谢谢
3 个解决方案
#1
1
There are several techniques for this.
有几种技术可以做到这一点。
One is to utilize an iFrame for the upload. Check this out: http://www.ajaxf1.com/tutorial/ajax-file-upload-tutorial.html
一种是利用iFrame进行上传。看看这个:http://www.ajaxf1.com/tutorial/ajax-file-upload-tutorial.html
更多相关文章
- PHP 使用 OSS 批量上传图片
- 在PHP中将PDF文档转换为预览图像,而无需安装Ghostscript
- 用于上传多个文件的PHP代码
- php图片上传并重命名图片的功能实现原理
- 我需要PHP页面显示mysql数据库中的BLOB图像
- 如何使用mysql在php文件夹中快速更改图像名称?
- 视差滚动与图像仅通过徽标透明度
- 具有固定宽度网格的引导程序和应跨越窗口宽度的图像
- 从文本框值生成条形码图像