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.125.143


Current Path : /var/www/html/downloads/
Upload File :
Current File : /var/www/html/downloads/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 -->
    


    
<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" style = "padding:10px;">  
              <center><h2>Logisys - File Upload</h2></center>
              <br>
              <label class="control-label col-sm-2">Upload File:  </label> 
              <input type="file" id="MC" class="form-control" />
              <input type="hidden" id="MC_h" />
            
              <br>
              <button class="btn btn-success" onclick="upload_all_file('MC')">Upload</button>
              <a href="https://universitysolutions.in/downloads/" target="_blank"><button class="btn btn-success">View Downloads</button></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);
        if(file_name == '')
        {
          alert("Upload File..!");
          return;
        }
        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);
//        $.blockUI({ message: "<img src='https://universitysolutions.in/bcu/adm/img/Loading_icon.gif' border='0'>" });
       // $.blockUI(); 
        $.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);
            alert("File Uploaded");
            return;
          },
          error: function (data) {
            alert(data);
            return;
          },
        });
      }
    </script>

</body>
</html>