Creates a new FileData for filename and whether it is to be uploaded.
filename
FileData({required this.filename, this.upload = true}) : super();