diff --git a/html/user.html b/html/user.html
index 929ea2b..2fa45c3 100644
--- a/html/user.html
+++ b/html/user.html
@@ -1,45 +1,240 @@
-
+
+
Drag & Drop files here
+
+
+
+
-
+ }
+
+ function getFileSize(size) {
+ if (size === 0) return '0 Bytes';
+ const k = 1024;
+ const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
+ const i = Math.floor(Math.log(size) / Math.log(k));
+ return parseFloat((size / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];
+ }
+
+ uploadButton.addEventListener('click', function() {
+ if (filesToUpload.length > 0) {
+ const totalSize = filesToUpload.reduce((acc, file) => acc + file.size, 0);
+ if (totalSize > sizeLimit) {
+ alert('Total file size exceeds the limit! Please remove some files.');
+ } else {
+ // Here you can send filesToUpload to the server or perform other actions
+ console.log('Uploading files:', filesToUpload);
+ alert('Files uploaded successfully!');
+ // Clear the filesToUpload array and update the file list display
+ filesToUpload = [];
+ updateFileList();
+ updateProgressBar();
+ }
+ } else {
+ alert('Please select files to upload.');
+ }
+ });
+
+
-
\ No newline at end of file
+