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

Trying to upload files in array of objects #2122

Open
sameeranand2711 opened this issue Jul 18, 2019 · 0 comments
Open

Trying to upload files in array of objects #2122

sameeranand2711 opened this issue Jul 18, 2019 · 0 comments

Comments

@sameeranand2711
Copy link

Hi,

I am trying to upload an array of objects where each object will have a list of attachments, something like:

var obj = {
Description: '',
RequestId: 'kjdsf9-dsfa',
Items: [
{ Description: '', Cost: 132.00, Files: [file1, file2]},
{ Description: '', Cost: 461.25, Files: [file3, file4]}
]
}

var promise = Upload.upload({
url: '/localhost/saveRequest',
method: 'post',
data: obj
});

However, on the server, the Files array inside every object is null.
Can we upload files as above? Or do we have to upload at the top level only.

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

1 participant