General discussion of OpenCATS

Moderators: RussH, cptr13

Forum rules: Just remember to play nicely once you walk through the door. You can disagree with us, or any other commenters in this forum, but keep comments directed to the topic at hand.
By archiseek
#1001
when you view an attachment the url is in the format

/jobs.php?m=attachments&a=getAttachment&id=9&directoryNameHash=53dcd98bcde9d9dc2fd6419edadfd6b1

the directoryNameHash value at the end
which table in the db is this stored?
User avatar
By RussH
#1002
Hi,

that'd be the table called 'attachment' :-)

..in a field called directory_name

...possibly. I don't have attachments in the jobs pages. Perhaps it bears some investigation?
By archiseek
#1003
nope its not it...

attachment.directory_name is in the format
site_1/0xxx/0deaacc963bd5be2ff08e6bd7a4de37f
By archiseek
#1004
in the attachments.php in lib

we have
Code: Select all
            $rs[$index]['retrievalURL'] = sprintf(
                '%s?m=attachments&a=getAttachment&id=%s&directoryNameHash=%s',
                CATSUtility::getIndexName(),
                $data['attachmentID'],
                urlencode(md5($data['directoryName']))
is that changing the directory_name? or am i reading that wrong
User avatar
By RussH
#1005
is that the md5sum that's stored in the attachments table, so it does a match against that?
By archiseek
#1009
for example

attachment with url ending in directoryNameHash=e587f381baacf1ec2fb1531a7dac80ef

has the following values in the db

directory_name site_1/0xxx/0deaacc963bd5be2ff08e6bd7a4de37f/

md5_sum 4d1f767863b6a3985f43e9401b0739f6
By archiseek
#1010
guilty of over-thinking....
was exporting resume link to csv

of course it's simply /attachments/ directory_name
User avatar
By RussH
#1011
Okay, a quick search through the code gives;


/cats/ajax/getAttachmentLocal.php: md5($rs['directoryName']) != $_POST['directoryNameHash']) - so that is just a md5 hash for the directory name.

This is the "import from resume"[…]

EMAIL CONFIGURATION

Hi, the email configuration (including different[…]

as the title says...

It's essential to keep these synchronized to ensur[…]