AJAX图像上传到服务器问题? [英] AJAX Image upload to Server Issue??

查看:125
本文介绍了AJAX图像上传到服务器问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,我已经浏览了 http: //www.webtoolkit.info/ajax-file-upload.html 我完全迷失了,不知道它的作用是什么,应该添加它们!?!


所以我有:

Ok, I''ve gone through the code at http://www.webtoolkit.info/ajax-file-upload.html and I''m totally lost, haven''t got a clue what it does and wher eit should be added!?!

So i have:

展开 | 选择 | Wrap | 行号

推荐答案

虽然它说的是Ajax,它没有使用XMLHttpRequest对象,因为你不能使用Ajax进行文件上传。它使用隐藏的iframe。您可以从演示中获取代码并根据您的要求进行修改。
Although it says Ajax, it doesn''t use the XMLHttpRequest object because you can''t do a file upload using Ajax. It uses a hidden iframe. You can take the code from the demo and modify it to your requirements.


链接中的代码是否可以与我的AJAX一起使用,或者是否有使用AJAX上传图像的方法?
Will the code in the link work with my AJAX or is there a way using AJAX to upload an image?


它可以工作,但是如果你打算使用隐藏的iframe,那就不需要Ajax代码了。
It could work, but if you''re going to use a hidden iframe anyway, there''s no need for the Ajax code.


这篇关于AJAX图像上传到服务器问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆