Hello, here is my problem.
On certain files when I upload them they show up as 0size no type or any information associated with it. I thought maybe the file was to big for the default filesize php allows for uploads. I tried 2MB, 5MB, 15MB, 25MB, 50MB, 85MB files. this wasn't the case. As some files that were as large or larger worked fine. My question is, is this a bug in php or is itpossibly related to apache not knowing the mimetype? It mostly occurs with rar files and exe's.
Also when I upload a file and it succeeds I perform an MD5/SHA1 check, though oddly enough the MD5/SHA1 that is outputted is completely different from the program I originally created the hash with. Am I doing this wrong?
md5($FILES['file']['name'])
or do I have to use some specific function to read the file correctly for md5/sha1 or even open it and read its contents?
Thanks in advance.