Fixed to only look at upload if the size is greater than 0