0
ASP.NET에서 파일 (데이터는 SQL FILESTREAM에 저장 됨)을 업로드하고 다시 가져올 수있는 소규모 웹 애플리케이션을 작성합니다. 그러나 텍스트 편집기에서 기본 파일과 다운로드 파일을 비교할 때 차이점이 있습니다. 여분의 태그는 마지막 태그에 추가됩니다. 이이여분의 태그에서 파일 다운로드 방지
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head><title> Untitled Page </title></head> ..............
나는 다운로드하고 파일과 같은 뭔가 사람이 별도의 태그에서 다운로드 파일을 방지하는 방법을 말해 줄 수
매개 변수?Response.AddHeader("Content-disposition", "attachment; filename=" + Path.GetFileName(path) + fileType); Response.ContentType = "application/octet-stream"; Response.BinaryWrite(buffer);