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

no such file or directory, open test.txt #253

Open
tsaromkar opened this issue Aug 4, 2017 · 0 comments
Open

no such file or directory, open test.txt #253

tsaromkar opened this issue Aug 4, 2017 · 0 comments

Comments

@tsaromkar
Copy link

tsaromkar commented Aug 4, 2017

i have this code
rest.post('url/upload', {
multipart: true,
data: {
'video[name]' : projectObject.get('name'),
'video[video]' : rest.file('test.txt', null, 5000, null, 'text/plain'),
'video[category_id]' : projectObject.get('category'),
'video[project_id]' : objectId,
'video[description]' : projectObject.get('description'),
}
}).on('complete', function(data, response) {
console.log(response);
});
but it says no such file or directory exists even if the file is there in the directory
i have npm 5.3.0
and node v8.1.4

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