Finish uploading file API and custom route