During the upload process, we may encounter batch upload. We will think of the batch upload that comes with the document library. It is very convenient to drag and drop the file directly to the specified area.
Then we can study this page. After testing, we need the following:Code:
Note that the following input tags cannot be missing. The referenced object will be installed with the Office.
I tried to assign a value to posturl multiple times, hoping to post the data, but it cannot be implemented. (However, you must specify posturl: http: // siteurl/_ vti_bin/shtml. dll/documents/Forms/upload. aspx in the office2007 and office2003 environments)
Confirmation-URL: the URL that is executed after the upload is complete. Generally, http: // siteurl/_ layouts/inplview. aspx? Cmd = closepopui
The key point is the label with the ID of destination. Here, the uploaded document library is filled. Of course, if there is a folder, the path will change to:/documents/ft.
We can use the client object model to dynamically generate a folder and assign a value to destination. Because it cannot return values like the RTX page, we also need to obtain the values through Js, this can be customized and used by yourself.
The following figure shows the interface effect: