Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add formData #39

Closed
TheLinuxMafia opened this issue Feb 6, 2019 · 3 comments
Closed

Add formData #39

TheLinuxMafia opened this issue Feb 6, 2019 · 3 comments

Comments

@TheLinuxMafia
Copy link

Any help on add form-data in config or in any other place ?
I need to send id in url or in request but i can't do.
Please let me know how i can do.

@chandimacpgz
Copy link

I'm having the same issue. Need to attach form data to the request.

@TheLinuxMafia
Copy link
Author

TheLinuxMafia commented Feb 11, 2019

Ok i've found solutions, tricks, hack or call it shit but it work form me.
In component declare configuration and post var after class export, es:
export class UploadtemplateComponent implements OnInit { myuploadConf: {}; mydatapost: number; }

In constructor put your upload config:

this.myuploadConf = { multiple: true, formatsAllowed: '.exe', maxSize: '100', uploadAPI: { url: 'http://xxx:xxx/api/auth/xxxxx/' + this.mydatapost, }, theme: 'attachPin', hideProgressBar: false, hideResetBtn: false, hideSelectBtn: true, attachPinText: 'Select exe virus' };

you need set mydatapost befor myuploadConf!

Please if you find other solutions share it !

vvavdiya added a commit to vvavdiya/angular-file-uploader that referenced this issue Feb 6, 2020
@kzrfaisal
Copy link
Owner

Closing this issue because of no recent activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants