Bug #920
closedWResource: uses outdated suggested filename when set in handleRequest
0%
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.
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
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
Updated by Koen Deforche about 13 years ago
- Status changed from Resolved to Closed
Resolved in Wt 3.1.11