PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
so... whats wrong? It works on most images except every once in a while I'll find an image it wont work on. If I try to upload it when it is == NULL, it puts a file there that matches the size of the uploaded file but its just a "corrupt pic"
Last edited by josh on Thu Nov 11, 2004 12:19 pm, edited 2 times in total.
I dont really care about image size right now.. even if I ignore the mime type and upload it regardless the picture will be "corrupt" but i can view it perfectly from my pc.. ive tried openin the image in photoshop and converting to gif/jpg/png etc... all do the same thing...
[php_man]getimagesize[/php_man]() returns the mimetype of the image as well as the image size and an nice formatted height, width size for your img tag.
what is the mime type that you are expecting from this corrupt images?
Are they fancy, use special coding techniques or too big?
I didn't know that you had to edit the MAX_FILE_SIZE ... i thought i just ran an if statement on the size after it's been uploaded, seems your browser will not send the image if you specify a max_file_size on the form you are sending it from and that exceeds.. in my script I said upload it no matter what file size so that threw me off