Project

General

Profile

Actions

Bug #920

closed

WResource: uses outdated suggested filename when set in handleRequest

Added by Boris Nagaev over 13 years ago. Updated about 13 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.

Actions #1

Updated by Koen Deforche over 13 years ago

  • 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

Actions #2

Updated by Koen Deforche about 13 years ago

  • 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

Actions #3

Updated by Koen Deforche about 13 years ago

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: Atom PDF