The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Attachment Type
Hello.
How can I distinguish as "images" or other types of attachments using the database? The column "contenttypeid" it can not be, since JPG images sometimes have the ID "1" but also "24". RAR files have "1"... I need a differentiator. Thanks. |
#2
|
|||
|
|||
It think what you want is to use the filedataid and the filedata table, then look at the 'extension' column.
|
#3
|
|||
|
|||
Thanks.
Table filedate: 225 Results Table attachments: 274 Results ACP -> Attachments... 274 / 225 He? |
#4
|
|||
|
|||
Are you asking why there are more attachments than filedata? I'm not sure, but I think it's probably because you can attach the same file more than once, so if you attached the same file to 2 different posts then there would be 2 rows in the attachment table with the same filedataid.
|
Благодарность от: | ||
Lynne |
#5
|
|||
|
|||
You are right. :up:
PHP Code:
:up: |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|