jquery - How to paste image in chrome, then upload it to a server with PHP -


i want upload image server. achieve this, want user paste image chrome (the image print screen in fact), , post stream php page, convert stream image, , upload it.

how can achieve web application ?

today have develop differents parts : used this script, , create upload.php page gets post variable , try create , image.

the problem have, when post data, blob. base64 stream.

can me ? in advance.

i'm not sure why looking "base 64 stream". if sending blob server via ajax, far server concerned, it's file. treat no different other upload server-side. blob file without name property. that's perhaps bit overly-simplistic, point that, again, nothing more file far server knows.

assuming sending multipart-encoded request, i'd point out user agents set filename property of item's content-disposition header in request "blob" when item uploading blob instead of file. possible change value in some browsers via 3rd argument in formdata's append method, wouldn't rely on yet.

also note that, if interested in library handles of already, maintain, fine uploader natively supports uploading images via paste in chrome.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -