How to set/force maximum photo dimensions when uploading
-
When a user uploads a large photo, lets say 3000 x 3000, They hit a 500 Internal server error on my website. Wasnt able to fix that, so how can i force max dimensions
Here is my current code:<?php
$betubeCustomUpload = $redux_demo[‘betube-custom-uploading’];
if($betubeCustomUpload == 1){
?>
<div class=”upload-image”>
<label for=”imgfileupload” class=”btn-upload”>
<i class=”fa fa-camera”></i>
<span>
<?php esc_html_e(“Featured Image”, ‘betube’) ?></span>
</label>
<input type=”file” id=”imgfileupload” name=”upload_attachment[]” multiple=”false” accept=”image/png, image/jpeg”></div>
<?php }?>The page I need help with: [log in to see the link]
- The topic ‘How to set/force maximum photo dimensions when uploading’ is closed to new replies.