def save(self):

        fp = self.fp
        s3connection = self.connect()
        bucket = self.bucket(s3connection)
        filename = self.safe_filename(self.filename)
        path = self.join(self.store_path, filename)
        mimetype, encoding = mimetypes.guess_type(filename)

        fp.seek(0)

        key = bucket.new_key(path)
        key.set_metadata('Content-Type', mimetype)
        key.set_contents_from_file(fp)
        key.set_acl(current_app.config.get('STORE_S3_ACL'))

        # Update the filename - it may have changes
        self.filename = filename
Return the first child of node matching an id reference.
dataset/ETHPy150Open thisissoon/Flask-Store/flask_store/providers/s3.py/S3Provider.save--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/SOAPpy/wstools/Utility.py/DOM.getElementById