Generate uploader before restarting server

If you generate the uploader after you start the server you get an error because the constant cannot be found. 

This fixes that issue