How to preprocess file before Feeds upload
The Feeds project page doesn't advertise it, but there is an API. If you look at feeds.api.php you can view all the hooks it makes available. A few of them take action before a feed item is processed or saved.