Allow uploads only when appropriate.