def value_from_datadict(self, data, files, name): "File widgets take data from FILES, not POST" if data.get(name, None): file_path = data[name] file_field = self.get_file_field() file_obj = file_field.storage.open(file_path) file_copy = FieldFile(None, file_field, file_path)#file_field.attr_class(None, file_field, file_path) file_copy.file = file_obj file_copy._committed = True return file_copy return None