]]jkjjgdjffksdkdxmnvbcbcvbvcbbbbbbbbbvcbcbvcbmnmbnwqeqwewqskfgj
במ12[cvbnvbnvcvbcvbcvbvvvccccccccccccccvbcvbcvbnmnmqewv;'
/
home
/
u729855735
/
domains
/
stylebyou.com
/
public_html
/
admin
/
Upload FileeE
HOME
<?php require('inc/header.php'); ?> <style> #drop-area { border: 2px dashed #ccc; border-radius: 20px; width: 700px; margin: 50px auto; padding: 55px; display: flex; flex-direction: column; justify-content: center; align-items: center; } #drop-area.highlight { border-color: purple; } p { margin-top: 0; } .my-form { margin-bottom: 10px; display: flex; flex-direction: column; justify-content:center; align-items:center; } #gallery { margin-top: 10px; } #gallery img { width: 150px; margin-bottom: 10px; margin-right: 10px; vertical-align: middle; } .button { display: inline-block; padding: 10px; background: #7a00ff; cursor: pointer; border-radius: 5px; border: 1px solid #ccc; color:#FFF; margin-bottom:20px; } .button:hover { background: #7a00ff; } #fileElem { display: none; } </style> <div id="drop-area"> <form id="fileUploadForm" class="my-form" enctype="multipart/form-data"> <input type="file" name="fileToUpload[]" iid="fileElem" onchange="handleFiles(this.files)" multiple> <input type="submit" value="Upload Files"> </form> </div> <div id="uploadProgress"></div> <script src="assets/js/media.js"></script> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script> $(document).ready(function() { $("#fileUploadForm").submit(function(e) { e.preventDefault(); var formData = new FormData(this); $.ajax({ url: "upload.php", type: "POST", data: formData, processData: false, contentType: false, xhr: function() { var xhr = new window.XMLHttpRequest(); // Upload progress xhr.upload.addEventListener("progress", function(evt) { if (evt.lengthComputable) { var percentComplete = (evt.loaded / evt.total) * 100; $("#uploadProgress").html("Uploading: " + percentComplete + "%"); } }, false); return xhr; }, success: function(response) { $("#uploadProgress").html(response); } }); }); }); </script> <?php require('inc/footer.php'); ?>