'Returns field\'s value just before saving.'

def pre_save(self, model_instance, add):

    file = super(FileField, self).pre_save(model_instance, add)
    if (file and (not file._committed)):
        file.save(file.name, file, save=False)
    return file
