I’m facing a problem with the JS upload file API and cordova
see this to better understand the issue
now i cant create a normal browser File object. Cordova use its own File object and that’s not standard. and i cant override it.
i can do as in the post above and create a blob then call:
Backendless.Files.upload(blob, “/Temp/” , true)
.then(function (fileURL) {
console.log(fileURL);
})
.catch(function (error) {
console.log(error);
});
i did that but is got an error because the blob doesn’t have a file name
Could you please describe the problem from the perspective of where Backendless doesn’t function as described?
Hello @mohammad_altoiher
The blob
object has to have a name
property or path
which can be used to retrieve a file name.
Have you tried to assign any of those properties?
1 Like