client/js/s3/util.js
function(iframe) {
            var doc = iframe.contentDocument || iframe.contentWindow.document,
                queryString = doc.location.search,
                match = /bucket=(.+)&key=(.+)&etag=(.+)/.exec(queryString);

            if (match) {
                return {
                    bucket: match[1],
                    key: match[2],
                    etag: match[3].replace(/%22/g, "")
                };
            }
        }
function(iframe) {
            var doc = iframe.contentDocument || iframe.contentWindow.document,
                queryString = doc.location.search,
                match = /bucket=(.+)&key=(.+)&etag=(.+)/.exec(queryString);

            if (match) {
                return {
                    bucket: match[1],
                    key: match[2],
                    etag: match[3].replace(/%22/g, "")
                };
            }
        }
function ( iframe ) { var doc = iframe . contentDocument || iframe . contentWindow . document , queryString = doc . location . search , match = / bucket=(.+)&key=(.+)&etag=(.+) / . exec ( queryString ) ; if ( match ) { return { bucket : match [ 1 ] , key : match [ 2 ] , etag : match [ 3 ] . replace ( / %22 / g , "" ) } ; } }
Looks at a response from S3 contained in an iframe and parses the query string in an attempt to identify
the associated resource.

@param iframe Iframe containing response
@returns {{bucket: *, key: *, etag: *}}
Looks at a response from S3 contained in an iframe and parses the query string in an attempt to identify the associated resource .