filestack-js icon indicating copy to clipboard operation
filestack-js copied to clipboard

Upload in NodeJS : URL Missing

Open Onivoid opened this issue 5 years ago • 10 comments

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 !

Onivoid avatar Sep 10 '19 15:09 Onivoid

Hi. Can you tell me what version are you using ?

pcholuj avatar Sep 12 '19 08:09 pcholuj

Hi. NPM version : 6.9.0 Node version : 10.16.2 filestack-js version : ^3.7.0

Onivoid avatar Sep 16 '19 08:09 Onivoid

Can you contact our support ? We need more details about your account.

pcholuj avatar Sep 30 '19 08:09 pcholuj

I have same issue.

kingstar1227 avatar Jan 21 '20 11:01 kingstar1227

Hi @kingstar1227 is it still a problem in 3.11.2 ? If yes, please contact support. Thanks.

maryfs avatar Feb 12 '20 07:02 maryfs

I have the same issue

psahni avatar Jun 08 '20 03:06 psahni

@kingstar1227 @maryfs What is the resolution on this ?

psahni avatar Jun 08 '20 03:06 psahni

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.

padenj avatar Jun 21 '20 07:06 padenj

Same with me. I get the status 'Initialized' with the same response structure as stated by @Skullyfox .

DonMatano avatar Jul 15 '20 07:07 DonMatano

Does the issue still persist? Because we cannot reproduce it.

pcholuj avatar Aug 07 '20 12:08 pcholuj