Add additional check to prevent sending direct uploads with JSON requests