Add ability to run preprocess script before upload