How to receive php image data over copy-n-paste javascript with XMLHttpRequest

后端 未结 4 1452
轮回少年
轮回少年 2020-12-15 13:14

I try to make an image-upload functionality similar to the one GMail uses. You copy (CTRL-C) an image from your desktop and paste (CTRL-V) it onto the website. The image is

4条回答
  •  -上瘾入骨i
    2020-12-15 13:48

    I guess the file is in the $_FILE array not in the $_POST since it is a file. If not, you may convert the image to a string an send the imagestring as GET request.

提交回复
热议问题