Starchik1 commited on
Commit
6112711
·
verified ·
1 Parent(s): 146248c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -28,7 +28,7 @@ class TransferManager:
28
  if filesize > MAX_FILE_SIZE:
29
  raise ValueError("File size exceeds maximum limit")
30
 
31
- transfer_id = ''.join(random.choices(string.ascii_letters + string.digits, k=16))
32
  file_path = os.path.join(app.config['UPLOAD_FOLDER'], transfer_id)
33
 
34
  with lock:
 
28
  if filesize > MAX_FILE_SIZE:
29
  raise ValueError("File size exceeds maximum limit")
30
 
31
+ transfer_id = ''.join(random.choices(string.ascii_letters + string.digits, k=4))
32
  file_path = os.path.join(app.config['UPLOAD_FOLDER'], transfer_id)
33
 
34
  with lock: