1.

Solve : Uploader?

Answer»

I have made a database where user can upload any files on it but the question is:

Is the database field has to type as Blob?
What php code do i use to bring up user computer browser so they can browse there files to upload data?
i have done some research but i dont know what the function CALLED! Quote from: TChai on April 15, 2009, 07:55:31 AM

What php code do i use to bring up user computer browser so they can browse there files to upload data?

You mean a Browse button? Just plain HTML...
Code: [SELECT]<INPUT type="file" />
Quote from: TChai on April 15, 2009, 07:55:31 AM
Is the database field has to type as Blob?

It WOULD be easier to copy the files to a folder.
See here: http://www.w3schools.com/php/php_file_upload.asp Quote from: kpac on April 15, 2009, 08:23:08 AM
You mean a Browse button? Just plain HTML...
Code: [Select]<input type="file" />
It would be easier to copy the files to a folder.
See here: http://www.w3schools.com/php/php_file_upload.asp

W3schools is basically the best place to learn programming, they do it step by step, and the test page is really cool!The general received wisdom is that storing large chunks of file-like binary data in a database should be avoided where a simple filesystem method of storage will suffice.  It's quicker to store flat-file, but you do have to PAY attention to the danger of file name conflicts.  Plenty of content management systems will do all this for you.  I wouldn't personally attempt to reinvent the wheel, so perhaps Drupal, Joomla, Mambo, etc., would be better tools for your job?Thanks


Discussion

No Comment Found