Hello All,
I would like to know how do i upload multiple files in a form. In the form, there are around 10-12 fields to browse files and when i click on the submit button i want to store all the uploaded files into the database and also i want to retrieve them.
Can anyone help me with the code?
Thanks and Regards,
Dream2rule
(a NOOB)
How to upload multiple files using PHP
Moderator: General Moderators
-
dream2rule
- Forum Contributor
- Posts: 109
- Joined: Wed Jun 13, 2007 5:07 am
-
dream2rule
- Forum Contributor
- Posts: 109
- Joined: Wed Jun 13, 2007 5:07 am
There's an example in the manual
http://www.php.net/manual/en/features.file-upload.php wrote:Example 38.3. Uploading array of files
-
dream2rule
- Forum Contributor
- Posts: 109
- Joined: Wed Jun 13, 2007 5:07 am
It's working fine for me.
What error message do you get? If you don't get an error message please change the settings of error_reporting and display_errors toin the php.ini of your test/development server.
tells you which file you have to change.
You might have to restart the webserver.
What error message do you get? If you don't get an error message please change the settings of error_reporting and display_errors to
Code: Select all
error_reporting=E_ALL
display_errors=OnCode: Select all
<?php echo 'ini: ', get_cfg_var('cfg_file_path'); ?>You might have to restart the webserver.
-
dream2rule
- Forum Contributor
- Posts: 109
- Joined: Wed Jun 13, 2007 5:07 am