简体   繁体   English

PHP-所见即所得风格的图片上传?

[英]PHP - wysiwyg style image upload?

I am rolling my own blog framework, mainly to learn how everything works. 我正在滚动自己的博客框架,主要是为了学习一切工作原理。

I would like to be able to upload an image while typing my post (and be able to insert the image's tag without refreshing the page). 我希望能够在输入帖子时上传图片(并能够在不刷新页面的情况下插入图片的标签)。

Basically, the goal is to be able to embed an image with ease similar to that of a wysiwyg editor. 基本上,目标是能够轻松嵌入类似于所见即所得编辑器的图像。

What is a step in the right direction? 朝正确方向迈出的一步是什么?

Youll need to look at "ajax upload" techniques. 您需要查看“ ajax上传”技术。 If you google that term you should find various examples. 如果您用谷歌搜索该术语,则应找到各种示例。 The most common way is to use a hidden iframe to send the data. 最常见的方法是使用隐藏的iframe发送数据。

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

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