<?php 
session_start();
include"../../../../inc/conn.php";
$unit         = $_POST['unit'];
?>


    <form action="simpanfile" method="POST" enctype="multipart/form-data">
        
        <input type="hidden" name="id_unit" value="<?php echo $unit;?>">

        <div class="form-group">
            <label for="exampleInputEmail1">Judul File/Artikel</label>
            <input value="" type="text" name="judul_materi" class="form-control" placeholder="Masukkan judul" required="required">
        </div>

        <div class="form-group">
            <label for="exampleInputEmail1">File</label>
            <input type="file" accept=".pdf" name="file" class="form-control" required="required">
            
        </div>



        <div class="modal-footer justify-content-between">
              
              <button type="submit" class="btn btn-primary">Simpan</button>
              <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        
        </div>

       
        </form>        
