Split out upload logic and handle upload routes.
Use a specific directory for uploads.