![]() |
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. |
It think what you want is to use the filedataid and the filedata table, then look at the 'extension' column.
|
Thanks.
Table filedate: 225 Results Table attachments: 274 Results ACP -> Attachments... 274 / 225 He? |
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.
|
You are right. :up:
PHP Code:
:) :up: |
All times are GMT. The time now is 03:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|