Well, I've finally got my file uploading working, now I'm having two problems:
First One is on the upload. I can upload a picture or a file with an average size of 300, 400k. works great. I open the database, and the file's there, and the file size in the database is consistent with the original file I uploaded. The problem is that I'm going to be using this database/website to upload files approx. 2 - 4Mb in size. I've tried uploading files about 1.3Mb in size, and I get the "or die ('query error') portion of the insert - won't take the file. Is there a setting or something I'm missing? as of now, I have no checks on file sizes, so I know my code isn't restricting the file size. I've got the field type of the database set to BLOB. I've even tried LONGBLOB, and LONGTEXT with no avail. Is it a PHP issue, or MySQL issue?
Second problem is that no matter what I upload, the file seems corrupt after download. file size/extension is still the same from before uploading to the database, but none of the files I download work. I can't open pictures, and I can't open zipped files. Does anyone have ANY suggestions or know of any fixes for this?
Thanks very much in advance!
~C.