Add helper method for checking if file uploaded