Jump to content

[SOLVED] Upload Problem!


Trium918

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.