Log in

View Full Version : attachments file name


Dr.CustUmz
03-19-2016, 11:46 PM
is there a way to make attachments write the actual file type rather than redirect through attachment.php like rather than

attachment.php?attachmentid=1&stc=1&d=1458418561

show .jpeg at the end

or rather than
http://drcustumz.me/attachment.php?attachmentid=2&d=1458418572

.zip

edit ------

i took a look in attachment.php and added IN RED
$imagelink = 'attachment.php?' . $vbulletin->session->vars['sessionurl'] . 'attachmentid=' . $attachmentinfo['attachmentid'] . '&d=' . $attachmentinfo['dateline'] . '&e=' . $attachmentinfo['extension'];

but this had no effect =/

anyone know of any way to do this?

Dave
03-20-2016, 09:16 AM
The way vBulletin stores attachments, it's not possible to show a direct download link without it being tunneled through attachment.php.

Dr.CustUmz
03-20-2016, 12:33 PM
vbseo, rewrites attachments to their original filename... which would fit my circumstances... maybe i can dig that code out =)