Sending extra parameters via FileItem.FormData #370

Open
opened 2016-08-26 10:21:55 +00:00 by hggeorgiev · 1 comment
hggeorgiev commented 2016-08-26 10:21:55 +00:00 (Migrated from github.com)

I wanted to attach extra request parameters to my file upload and dug through the source code. Everything seems ok with ``FileItem`, but in the uploader, this block of code is commented out for some reason:

   // todo
    /*item.formData.map(obj => {
     obj.map((value, key) => {
     form.append(key, value);
     });
     });*/

Can you let me know what has to be done so that I can make a PR with the functionality working?
Thanks!

I wanted to attach extra request parameters to my file upload and dug through the source code. Everything seems ok with ``FileItem`, but in the uploader, this block of code is commented out for some reason: ``` // todo /*item.formData.map(obj => { obj.map((value, key) => { form.append(key, value); }); });*/ ``` Can you let me know what has to be done so that I can make a PR with the functionality working? Thanks!
cedricduffournet commented 2016-09-07 08:33:25 +00:00 (Migrated from github.com)

You can already add extra attribute, see #226

You can already add extra attribute, see #226
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#370