This topic is locked

How to upload multiple files to the database

2/17/2010 9:01:11 AM
PHPRunner General questions
N
Nucleus author

I have seen the guide here http://xlinesoft.com/tutorials/uploadingimagesanddocs.htm that describes how to add a document or an image to the database. I would like to know if there is a way to upload multiple documents using the same field. Without having to add one filed for each file I want to upload.
Thanks

Sergey Kornilov admin 2/17/2010

It's not possible. You need to store references to those files somewhere. You either need to have multiple fields or a separate table to store images or image names.

N
Nucleus author 2/18/2010

I didn't explain it correctly I think. What I want to do is have multiple "Browse" buttons, to upload more than one file at the same time in the same "Files" section. Is this possible?

Sergey Kornilov admin 2/18/2010

Yes, but you need to save file names somewhere which means you need to have a several fields for this purpose. Each field 'Edit as' type can be set to 'File'.