-4

How can this be accomplished? The customer requires to take a picture in the post of the page, then to resize and store it to server. All using PHP and JSON.

halfer
  • 18,701
  • 13
  • 79
  • 158
user1238784
  • 1,682
  • 3
  • 18
  • 31

1 Answers1

2

Well you can check the file size from using $_FILES

[file] => Array
    (
        [name] => MyFile.jpg
        [type] => image/jpeg
        [tmp_name] => /tmp/php/php6hst32
        [error] => UPLOAD_ERR_OK
        [size] => 98174
    )

and regarding image resize you can refer "Resize image in PHP"

Aman jaura
  • 193
  • 2
  • 14