Fixes stat cache issue from #89

filesize() may receive cached data, meaning the file size sent to AmazonS3 may be incorrect, so it's important to clear the cache before requesting the filesize.