I am trying to create the functionality to upload a file in PHP and store it in my mysql database as a BLOB.
I have run into a few issues that I need some help on. The first issue is how can I do this without using forms? I am currently using the codeigniter framework and I do not want have the form do anything on the action, I would prefer just using javascript/ajax/jquery to grab my values and perform the file conversion to bytes and then insert into the blob,
The major problem I am having is in FF3 I can not get the path name to a file on the input. I have found out this is a known problem and I cant seem to find any way around this.
Lastly I am unclear on this but do I have to upload the file to a temp dir before I put it into my db? I would like to just encode the file and insert it but I am getting confused as to what the proper steps are.
Any info or a good tutorial that you have would be great. Thanks