Submitting a POST from a page that looks like the following:
<!DOCTYPE HTML> <html> <body> <form method="POST" id="form" action="http://localhost:8081/api/datas" enctype="multipart/form-data"> <input type="file" name="files" multiple/><br/> <input type="submit" /> </form> </body> </html>
Always returns only 1 file in the message.inboundAttachments map.
From the 3.6.0 repo.
I looks like line 77 in org.mule.module.http.internal.listener.HttpRequestToMuleEvent does a putAll()
Line 100 in org.mule.module.http.internal.multipart.HttpPartDataSource does a put() using getName()
For this example it looks like getName() is always "files" so only the last file exists in the resulting map. I think the parts for the for loop contains all the parts submitted in the POST.
|