Warn instead of asserting on invalid file for upload