简体   繁体   中英

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. If you google that term you should find various examples. The most common way is to use a hidden iframe to send the data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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