filestack-js
filestack-js copied to clipboard
Upload in NodeJS : URL Missing
Hi !
I have a problem, when i do client.upload(myFile)
it's good but in the response, the URL was Missing and the status was 'Initialized' and not Stored
Code :
const apikey = "XXXXXXXXX"; // Change to your API KEY here
const client = require('filestack-js').init(apikey);
const myFile = './rocket.png';
client.upload(myFile).then(
function(result){
console.log(result);
},
function(error){
console.log(error);
}
);
Response :
{ name: 'rocket.png',
size: 45080,
type: 'image/png',
slice: [Function: slice] },
_sanitizeOptions: undefined,
status: 'Initialized' }
Thanks you for help !
Hi. Can you tell me what version are you using ?
Hi.
NPM version :
6.9.0
Node version :
10.16.2
filestack-js version :
^3.7.0
Can you contact our support ? We need more details about your account.
I have same issue.
Hi @kingstar1227 is it still a problem in 3.11.2 ? If yes, please contact support. Thanks.
I have the same issue
@kingstar1227 @maryfs What is the resolution on this ?
I'm seeing this issue on 3.15.0. It works fine locally, but get a status: 'Initialized' in my response when running in a Vercel serverless function.
Same with me. I get the status 'Initialized' with the same response structure as stated by @Skullyfox .
Does the issue still persist? Because we cannot reproduce it.