PHP: put uploaded file directly to mysql blob
Hi,
I am trying to read a file uploaded by a simple <input type="file"> form and directly write it to a mysql blob - without saving it to the filesystem. I tryed something like: Code:
$input = fopen("php://input", "r"); Thanks, Toby |
It is extremely bad coding to do this.
google for php file upload and you will find the php doc page that tells how to correctly do this without security issues. |
All times are GMT -5. The time now is 10:30 AM. |