图片上传与阿贾克斯和PHP [英] image upload with ajax and php

查看:134
本文介绍了图片上传与阿贾克斯和PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Ajax来上传图片。 在此模块中:

  1. 在点击浏览并选择图像,它将被上传,并显示在文件字段。
  2. 添加标题和描述,并点击该按钮后,该图像将在下面显示,上图像领域将是空白
解决方案

您无法通过AJAX上传文件。你需要用的IFRAME或一个基于Flash的上传工作。

I want to use ajax to upload image. In this module:

  1. On clicking browse and selecting image, it will be uploaded and displayed over file field.
  2. After adding title and description, and clicking on the button, that image will be displayed below and upper image field will be blank

解决方案

You can't upload files through AJAX. You need to work with IFRAMEs or a Flash-Based uploader.

这篇关于图片上传与阿贾克斯和PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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