<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Upload</title>

<style>
#bar{
    width:100%;
    background:#ddd;
    margin-top:10px;
}

#bar div{
    width:0%;
    height:25px;
    background:green;
    color:#fff;
    text-align:center;
    line-height:25px;
}
</style>
</head>
<body>

<form id="uploadForm">
    <input type="file" name="file" required>
    <button type="submit">Upload</button>
</form>

<div id="bar">
    <div>0%</div>
</div>

<script>
document.getElementById("uploadForm").onsubmit = function(e){

    e.preventDefault();

    let data = new FormData(this);

    let xhr = new XMLHttpRequest();

    xhr.upload.onprogress = function(e){

        if(e.lengthComputable){

            let percent = (e.loaded / e.total) * 100;

            let bar = document.querySelector("#bar div");

            bar.style.width = percent + "%";
            bar.innerHTML = Math.floor(percent) + "%";
        }
    };

    xhr.onload = function(){
        alert(xhr.responseText);
    };

    xhr.open("POST","",true);

    xhr.send(data);
};
</script>


</body>
</html><?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://citrisurf.cl/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://citrisurf.cl/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://citrisurf.cl/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://citrisurf.cl/wp-sitemap-posts-product-1.xml</loc></sitemap><sitemap><loc>https://citrisurf.cl/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://citrisurf.cl/wp-sitemap-taxonomies-post_format-1.xml</loc></sitemap><sitemap><loc>https://citrisurf.cl/wp-sitemap-taxonomies-product_cat-1.xml</loc></sitemap><sitemap><loc>https://citrisurf.cl/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
