How to automatically add another upload doc field after one has been uploaded

How to automatically add another upload doc field after one has been uploaded

Within a form I am creating, I want to know how do I let the system automatically create another File upload field after a document has been uploaded.  In addition, if the second doc also uploaded, system will create a third blank field for further uploading.  Thanks for your assist.