on-internet
← Community

imagecreatefromjpeg crashing without error message

Stack Overflow ·

So I'm creating thumbnail and uploading some image files to webserver. My code is working with png but I have no idea why it's crashing with jpeg/jpg. FrontEnd <form method="POST" action="ajax.php" enctype="multipart/form-data"> <input type="file" name="uploadImage[]" id="file_input"> <input type="file" name="uploadImage[]" id="file_input1"> <input type="file" name="uploadImage[]" id="file_input2"> <input type="submit" name="sendBtn" value="Click me"> </form> Ajax.php $file_ary = reArrayFiles($_FILES['uploadImage']); //Reorder array foreach ($file_ary as $file) { if(file_exists($file['tmp_name

Comments

Sign in or sign up to comment and upvote.

No comments yet.