Project

General

Profile

Actions

Bug #920

closed
BN KD

WResource: uses outdated suggested filename when set in handleRequest

Bug #920: WResource: uses outdated suggested filename when set in handleRequest

Added by Boris Nagaev about 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
07/22/2011
Due date:
% Done:

0%

Estimated time:

Description

If WResource::suggestFileName() is called from handleRequest() method of WResource's descedant, it is applied only to next download attempt. WResource is used as global object.

KD Updated by Koen Deforche about 15 years ago Actions #1

  • Status changed from New to Feedback

Hey,

I think we should document this --- a general change is not possible (because the suggested file name is also encoded in the URL which is taken by some browsers as a hint on the filename). The use in the content disposition could possibly use a name supplied in handleRequest(), but even that requires some juggling since we need to make sure we output the headers before the contents.

Regards,
koen

KD Updated by Koen Deforche about 15 years ago Actions #2

  • Status changed from Feedback to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.1.11

Hey,

I've fixed this in so far that the suggested file name is used as content disposition, even when set during handleRequest().

Regards,
koen

KD Updated by Koen Deforche almost 15 years ago Actions #3

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: PDF Atom