SO I have an html form which can accept the users camera input or oother file. The problem I have ios that the images and many MB in size. On output (part of a written report) the images only have to be 800x600max in size. Many images may be uploaded as part of process the user must go through.
My question is how can I use an
<input type="file" name="pic" accept="image/*">
And then resize it on the client side AND swap the orginal image for the resized on in the form ready for form submission.
I have read much but cannot see any direct answers to this question.