![]() |
how 2 get the size of attachment from the dbase
Im working on hack to limit amount of space per user for attachments. and give them access to their attachments
in their control panel so they can add / change / del the files they uploaded. I have had my forum up for around a month and the have 250meg of attachments. I will pass out my code once its out of alpha. if anyone can shed some light on getting the size of the attachments it would be a huge step. |
kewl I figured it out, using MySQL LENGTH() command in my query.
Code:
LENGTH(filedata) as 'filesize' |
Yup, that'll give the file's size in bytes. :)
|
All times are GMT. The time now is 08:33 AM. |
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:
|