Image upload limit?

Discussion in 'PHP' started by caligrafx, Dec 16, 2014.

  1. #1
    for some reason the parameters for this code is not working... when I say the parameters I am saying under both the image1 and image2 php files if I change the
    "if ($width==1080 && $height==1080)
    PHP:
    it doesn't seem to matter the size... this form still will not approve the image size. Still stuck with 80x80 or 640x358. Even if you get them all the same from "Post-new.php, upload-image1.php, and upload-image2.php.

    If someone with better knowledge of this could help that would be great! Here are the links to the full pages of code below.

    post-new.php - http://pastebin.com/9FaUj8yJ
    upload-image1.php - http://pastebin.com/a4YqbhkJ
    upload-image2.php - http://pastebin.com/vL1jZeJ3
     
    caligrafx, Dec 16, 2014 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    The line you posted here will just trigger if the width and height is exactly 1080 - if you want anything up to 1080, you need to change == to <= (less than or equal to).
     
    PoPSiCLe, Dec 17, 2014 IP
  3. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #3
    This script is horribly insecure. Don't let anyone you don't trust use it.
     
    nico_swd, Dec 20, 2014 IP