Make FrontEnd::prepare_upload work for other asset types.

This is needed for repair_database.