Fix file upload when memory_limit in php configured to have no limits.
Fix other memory_limit checks when it is disabled.
Merge pull request #190 from hedgy/FixUploadNoMemoryLimit

Fix file upload when memory_limit in php configured to have no limits.