Passing different parameter value for each upload queue #883
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I need to pass additional information for each file upload. Looking at the snapshot, user can change the document types before the file is being uploaded. How do I tie each options selected by the user to the upload itself. I had tried with onBuildItemForm but I am not sure how to tie the option selected for that particular item and append that to the individual queue form. Any help or guide is much appreciated
same
Any one get any solutions on this?
+1
I want to send a parameter so that I can check which folder to upload that specific file. I have different folders for different types of files
I am looking for the same answer. Unfortunately no one knows a solution to this. I was able to achieve it for a single file upload at a time but doesn't work when multiple files are getting uploaded.
how to pass the formdata or additional parameters(documenttype,document description..) to the REST webApi?
My Api is
public IHttpActionResult Upload()
{
}
any updates guys?
Maybe you can use formatDataFunction from simple-demo.ts.
So by just inspecting the sources.
Set options.disableMultipart = true.
Set options.formatDataFunctionIsAsync = false;
Create a delegate method on options.formatDataFunction(item). I this case should return a FormData object.
Your formatDataFunction function does something like:
The uploader file-uploader.class.ts does a xhr.send(sendable) when option.formatDataFunctionIsAsync = false.
xhr is a XMLHttpRequest and send the formdata.
sendable is the object you created using the formatDataFunction.
Hope this helps.
any update on this?