I have a MySQL database and would like to upload multiple pdf files at once and store the information into the db. Here is the db I created:
Is there a script that I can run that will accomplish this? I have created a webpage but can only upload one at a time and would just like to do a full dump of 3000 files at once creating a record for each in the db.
Thanks
Code:
1. CREATE TABLE `file` ( 2. `id` Int Unsigned Not Null Auto_Increment, 3. `name` VarChar(255) Not Null Default 'Untitled.txt', 4. `mime` VarChar(50) Not Null Default 'text/plain', 5. `size` BigInt Unsigned Not Null Default 0, 6. `data` MediumBlob Not Null, 7. `created` DateTime Not Null, 8. PRIMARY KEY (`id`) 9. )
Thanks
Comment