Prepare upload endpoint