Sounds good to me. This does sound like something that should happen inside FileField, maybe in get_db_prep_value().
FileField
get_db_prep_value()