-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
  • 19,824
  • 17
  • 99
  • 186
user1238784
  • 2,250
  • 3
  • 22
  • 41

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
  • 201
  • 3
  • 15