javascript - Upload file with input[type="file"] without a second button to send -


i'm setting typical profile picture upload , crop feature site. i'm looking @ how others have set , see many managing have 1 input type="file" , not allows selecting file calls php or js display image.

i'm stuck on how make after image has been chosen.

does 1 have link or suggestion on how perform this?

one way achieve convert file blob, present using html5 canvas. example: http://www.html5rocks.com/en/tutorials/file/dndfiles/

another option issue ajax request after file input has been changed. whatever server processing need (crop, save, etc.) return ajax call path file. append new <img src='filepath.jpg' /> dom.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -