1
<input type="file" name="doc-file" multiple/>
file_path = request.FILES.get('doc-file')
我的返回值是None
在django和python中上傳文件? FILE_PATH的
但是當我做file_path = request.POST.get('doc-file')
返回filename
。用python和django上傳文件的最佳方式是什麼?