简体   繁体   中英

Mysql and php- drag and drop image to upload in database

是否可以使用php拖放图像将图片上传到数据库?

If you use a front end library (Javascript) to catch the event of dropping the object into the page, and then submitting it via an Ajax request - yes it is possible. The other (uglier) route is to have a Java applet that does it (still through ajax).

I wouldnt store the images in the database though. Store them in a filesystem with the path specifics stored in the DB.

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