I have a file saved in sites/default/files/private/reports from a custom module. I'm trying to use Rules download to save that file in a filefield.

The path I'm using in the action is sites/default/files/private/reports/[node:field_reportid].pdf. However, I'm getting a 403 error. I've tried sending cookies, and still do not have any luck.

Am I able to download a private file with this module?

Comments

hanoii’s picture

Status: Active » Postponed (maintainer needs more info)

Hey, sorry for the delay, are you still having issues? I would assume it's possible to download the file if the user that's triggering the rule have access to the private file.

mrpeanut’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

I made a workaround, so it's okay for now. I think the actual issue is #1414990: Orphaned private files can not be accessed so I don't think it's anything with this module.