title: Django save uploaded file
body: <p>I want to upload a file, what I am able to do with the code stated below, but I also need to save all the uploads in different folder with different names. If 2 users upload the same file from browser, then in the folder it should be saved with different name or Unique Identification number.
  Following is my code:</p>
  
  <p>views.py</p>
  
  <pre><code>from django.shortcuts import render
  import openpyxl
  
  
  def index(request):
      if "GET" == request.method:
          return render(request, 'myapp/index.html', {})
      else:
          excel_file = request.FILES["excel_file"]
  
          # you may put validations here to check extension or file size
  
          wb = openpyxl.load_workbook(excel_file)
  
          # getting all sheets
          sheets = wb.sheetnames
          print(sheets)
  
          # getting a particular sheet
          worksheet = wb["Sheet1"]
          print(worksheet)
  
          # getting active sheet
          active_sheet = wb.active
          print(active_sheet)
  
          # reading a cell
          print(worksheet["A1"].value)
  
          excel_data = list()
          # iterating over the rows and
          # getting value from each cell in row
          for row in worksheet.iter_rows():
              row_data = list()
              for cell in row:
                  row_data.append(str(cell.value))
                  print(cell.value)
              excel_data.append(row_data)
  
          return render(request, 'myapp/index.html', {"excel_data":excel_data})
  </code></pre>