Trium918 Posted May 29, 2007 Share Posted May 29, 2007 size: 54.4 KB (55,785 bytes) size on disk: 56.0 KB (57,344 bytes) I am having trouble uploading files with in this size range. What could be the problem. Maybe just pointing it out and I'll do the rest. Thanks! Note: If more code is needed, please ask. <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> <?php // this is how I am checking the size of the file! if ($PhotoFileSize == 0){ die ("Sorry. The upload of $sPhotoFileName has failed. Search a photo smaller than 100K, using the button."); } if ($PhotoFileSize > 102400){ die ("Sorry. The file $sPhotoFileName is larger than 100K. Advice: reduce the photo using a drawing tool."); } ?> Link to comment https://forums.phpfreaks.com/topic/53340-solved-upload-problem/ Share on other sites More sharing options...
Trium918 Posted May 29, 2007 Author Share Posted May 29, 2007 I figured it out! It was this line, but this topic is for from being solved. How much is 600 kb in the value=" " below? <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> Link to comment https://forums.phpfreaks.com/topic/53340-solved-upload-problem/#findComment-263621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.