Coded endpoint for uploading files