Server-side upload main logic