Move download method detection up so that we can check whether 'redirect' is used before we determine the attachment ID. #2394
If an absolute path is given and 'redirect' download method is used, set method to forced to ensure proper file download. #2394
Whitespace