You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: