I have a issue on read excel file uploaded by user,here my code
if request.method == 'GET':
add_file = request.FILES.get('monthly_file')
df = pd.read_excel(add_file)
When i give request.Files['monthly_file] it gave multidict key value error,. So im using request.FILES.get('monthly_file') to get user uploaded file. But it gives Invalid file path or buffer object type: <class 'NoneType'> value error,. How can i resolve it..
Thanks in advance,..