0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.138.123.240


Current Path : /var/www/html/univadmin/
Upload File :
Current File : /var/www/html/univadmin/updexc.php

<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <title>Upload Exc</title>
    <!-- Favicon-->
    <link rel="icon" href="favicon.ico" type="image/x-icon">
    <link href="https://universitysolutions.in/bcu/adm/plugins/bootstrap/css/bootstrap_adm.css" rel="stylesheet">

    <!-- Waves Effect Css -->
    <link href="https://universitysolutions.in/bcu/adm/plugins/node-waves/waves.css" rel="stylesheet" />

    <!-- Custom Css -->
    <link href="https://universitysolutions.in/bcu/adm/css/style_adm.css" rel="stylesheet">
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
    <link href="https://universitysolutions.in/bcu/adm/css/themes/all-themes.css" rel="stylesheet" />
    
</head>

<body>
    <!-- #END# Page Loader -->
    <!-- Top Bar -->
    

<nav class="navbar" style="background-color: #1ba0c7;">
    <div class="container-fluid" style="color: #fff;">
        <div class="col-md-12 m-t--5">
            <center>
              <h2 class="brand" style="margin-left: 50px;">Logisys - Upload File</h2>
          </center>
        </div>
    </div>
</nav>

<section class="content">
  <div class="container-fluid">
    <div class="tab-content" id="loadtab">
      <!--///////Personal Details Card\\\\\\\-->
      <div class="row clearfix" id = "personal_det">
        <div class="col-lg-10 col-md-12 col-sm-12 col-xs-12">
          <div class="card ">
          <div class="form-group">
          <div class="photodiv">
              <label class="control-label col-sm-2">Marks Card  </label> 
              <input type="file" id="MC" onchange="upload_all_file('MC')" />
              <input type="hidden" id="MC_h" />
              <a href="#" id = "vmc" target="_blank">View</a>
            </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</div>
</section>

    <script src="https://universitysolutions.in/bcu/adm/plugins/jquery/jquery.min.js"></script>

    <!-- Bootstrap Core Js -->
    <script src="https://universitysolutions.in/bcu/adm/plugins/bootstrap/js/bootstrap.js"></script>

    <!-- Select Plugin Js -->
    <script src="https://universitysolutions.in/bcu/adm/plugins/bootstrap-select/js/bootstrap-select.js"></script>

    <!-- Slimscroll Plugin Js -->
    <script src="https://universitysolutions.in/bcu/adm/plugins/jquery-slimscroll/jquery.slimscroll.js"></script>

    <!-- Waves Effect Plugin Js -->
    <script src="https://universitysolutions.in/bcu/adm/plugins/node-waves/waves.js"></script>

    <script type="text/javascript">
      function upload_all_file(file_file) {
        var file_name = $("#" + file_file).val();
        console.log(file_name);
        var file_size = $("#" + file_file)[0].files[0].size;
        var file_extn = file_name.split(".").pop();
        var file_extn = file_extn.toLowerCase();
      
        var file_data = $("#" + file_file).prop("files")[0];
        var form_data = new FormData();
        form_data.append("file", file_data);

        $.ajax(
          {
          type: "POST",
          url: "upload_exc.php",
          data: form_data,
          cache: false,
          async: false,
          contentType: false,
          processData: false,
          success: function (data) {
            $(`#${file_file}_h`).val(data);
            $(`#${file_file}_a`).attr("src", data);
          },
          error: function (data) {
            alert(data);
            return;
          },
        });
      }
    </script>

</body>
</html>


?>