<div class="resource-content">
    <form id="resource-upload-form" action="<?= site_url('resource-upload') ?>" method="post" enctype="multipart/form-data">
        <?php if ($error != ''){ ?>
            <span style="color: #FF0000"><?= $error; ?></span><br />
        <?php } else { ?>
            <span>Choisir un fichier depuis votre ordinateur</span><br />
        <?php } ?>
        <input id="resource-input" type="file" name="userfile"><br />
        <a id="false-resource-input" class="btn btn-primary">Parcourir</a>
    </form>
</div>
<div class="progress">
    <div class="bar"></div >
    <div class="percent">0%</div >
</div>