Monday 15 June 2015

javascript - Upload image,and some text with Ajax and PHP -


I am trying to upload the image and 2 values ​​from the text field, but I use the input type = "file Can not "for processing, because I first got the camera capture and preview image and lt; Img ... , after which I replace the source of the image tag (maximum 500kb) and upload the image I try. If I use an input type = "file", then I upload a first image, one size does not change. Any sugestions?

You can capture the cam image and transfer the form (base 64 encoded) to your server from the form can do. Or put base 64 encoded image into hidden input.

No comments:

Post a Comment