file upload REST API using Pyramid