I don't know if this is the best approach, but the following lines helped me override / replace an existing file.
upload_dir_path = Setting.objects.get(entry__exact='upload_path').value delete_files(upload_dir_path) upload = form.save(commit=False) upload.file.storage.location = upload_dir_path upload = form.save()
source share