php class for CORS s3bucket uploads