Should permit zero byte files again

I believe this will handle the zero byte file upload issue. I even wrote a test for it. I do not have a dev environment to test it currently. So please run the tests before merging