Allow upload, improve cookie handling