2009-09-29, 04:02 PM
I'm on the final step in my custom module for the Merge system. However, I'm unsure how to go about the attachments.
This is my database structure:
And as you can see, the file itself is stored in a blob field, and there is no entry for the size of the file. How would I go about merging something done this way into the MyBB database? The rest I've got, but my php knowledge is very basic and I've never dealt with blob fields. Thanks in advance.
Oops, as an addendum, obviously there is also no uploads path since the file is blobbed into the database, right?
This is my database structure:
attachment_id int(10)
user_id int(10)
file_name varchar(255)
file_type varchar(80)
file_contents longblob
upload_date datetime
finalized tinyint(3)
downloads int(10)
image_width smallint(5)
private tinyint(3)
And as you can see, the file itself is stored in a blob field, and there is no entry for the size of the file. How would I go about merging something done this way into the MyBB database? The rest I've got, but my php knowledge is very basic and I've never dealt with blob fields. Thanks in advance.
Oops, as an addendum, obviously there is also no uploads path since the file is blobbed into the database, right?