Posted by iva2k on October 22, 2006 at 8:37pm
| Project: | FileRequest |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
line 108 in filerequest.module:
$result = db_result(db_query("SELECT nid FROM {files} WHERE filepath = '%s'", $config["filename"]));
will not return nid for any file uploaded under private files.
`filepath` field in the {files} table stores absolute paths when file uploads are private and files directory is specified by absolute path.
Other modules (such as image.module) still store relative paths in this field.
Rework is to run 2 queries, one with file's absolute path, and another with relative path as it is done now.