The question is not a simple one, a question about a hoof. It was already on many sites, googled - hands are already hurting. I put the question clearly, and do not ask "WHY?". So, it is necessary that the site user can download the file. In this case, this same file should go not anyhow, where, but for eternal storage in the database. He does not need to linger on the disk (unless temporarily, then deleted). Help, please, really need.

Closed due to the fact that off-topic by user31688, AntonioK , VenZell , null , Pavel Mayorov May 7 '15 at 6:05 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "Questions asking for help with debugging (" why does this code not work? ") Should include the desired behavior , a specific problem or error, and the minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, complete, repeatable example . " - Community spirit, AntonioK, VenZell, null
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 2
    either you suck it google, or you suck it up - I never saw the difficulty. Implementation of upload'a files is nothing complicated - DreamChild
  • And you do not know how to answer :) - kirillfootballer
  • No need to provoke me into a silly argument. What I can do, I know without you. And I prefer to answer the questions in which a person needs help, and not to those where he is too lazy to understand himself. I tell you once again - your question is not the slightest difficult - DreamChild
  • In confirmation of the words @DreamChild, that Google was bad - Uploading Files To MySQL Database . And asking you "WHY?" does not make sense, because over time, you ask yourself, clutching his head: "Why did I do that?" - Deonis

1 answer 1

I suppose you will upload files to the server, then assign the contents of the file to a variable and shove it into a BLOB type field. create additional fields in the table for the file type, name and other parameters.

But it is a perversion))))