본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Truncated download of a file with spaces but with double quotes on its code

  • 4 답장
  • 1 이 문제를 만남
  • 1 보기
  • 최종 답변자: cor-el

more options

Hi,

I'm trying to download a file from a web but it gets truncated! When the download starts it only have the first word and no file extension.

I searched in the HTML code of the web but seems ok, since it has it double quotes surrounding it. Here you have an example:

<a href="/file/directions/trying/image/first_file/File to be downloaded v1_EN.xls"> FILE I NEED TO DOWNLOAD</a>

I already tryed to add %20 intead of spaces in the url and didn't work. It seems that this problem started with the last update of Firefox. It works ok in Chrome and Edge. Any solution?

Hi, I'm trying to download a file from a web but it gets truncated! When the download starts it only have the first word and no file extension. I searched in the HTML code of the web but seems ok, since it has it double quotes surrounding it. Here you have an example: <a href="/file/directions/trying/image/first_file/File to be downloaded v1_EN.xls"> <u>FILE I NEED TO DOWNLOAD</u></a> I already tryed to add %20 intead of spaces in the url and didn't work. It seems that this problem started with the last update of Firefox. It works ok in Chrome and Edge. Any solution?

선택된 해결법

How is this file send by the server?

This is likely not a problem with the HTML code (href attribute in link), but about the HTTP response headers that aren't formatted properly.

The server may not comply to RFC 5987 and sends a wrong Content-Disposition:attachment; filename header.

I see this in the Network Monitor and there aren't quotation marks around the file name, so Firefox truncates with the first space:

Content-Disposition: attachment;filename=LISTADO PROYECTOS APROBADOS 1 CONVOC v1_ES.xls
Content-Type: application/octet-stream
문맥에 따라 이 답변을 읽어주세요 👍 0

모든 댓글 (4)

more options

Is this on any webpage or some?

Start Firefox in Safe Mode {web link} by holding down the <Shift> (Mac=Options) key, and then starting Firefox.

A small dialog should appear. Click Start In Safe Mode (not Refresh). Is the problem still there?

more options

FredMcD said

Is this on any webpage or some? Start Firefox in Safe Mode {web link} by holding down the <Shift> (Mac=Options) key, and then starting Firefox. A small dialog should appear. Click Start In Safe Mode (not Refresh). Is the problem still there?

Yes, the problem is still there! You can find it here:

  • LINK DELETED*

It happens when you try to use any download link of this page.

글쓴이 apsc 수정일시

more options

I tried one of the links and had the same problem. Contact support for that site.

For now; Right-click the link and select Save Link As then fill in the filename and extension yourself.

more options

선택된 해결법

How is this file send by the server?

This is likely not a problem with the HTML code (href attribute in link), but about the HTTP response headers that aren't formatted properly.

The server may not comply to RFC 5987 and sends a wrong Content-Disposition:attachment; filename header.

I see this in the Network Monitor and there aren't quotation marks around the file name, so Firefox truncates with the first space:

Content-Disposition: attachment;filename=LISTADO PROYECTOS APROBADOS 1 CONVOC v1_ES.xls
Content-Type: application/octet-stream

글쓴이 cor-el 수정일시