我的django项目使用以下代码下载该文件。如果客户端机器安装了IDM,它就能正常工作,但如果没有安装IDM,则无法工作。我找不到任何理由来解释这种怪事。('pdf_file_location') while os.path.exists(filename) is Falsepdf_file_location" type="hidden" value={{ pdf_file_location
我有一个APIController格式的PDF文档的POST请求,代码如下:MemoryStreamresponse.Content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");当我使用GET请求将文件发送到angular时,一切正常