Upload photos with gfapi and make listing public

Hello Guys,
Upload photos with gfapi and set listing on SALE status does not present the photo. I have uploaded through api the public listing does not have photos…
Any ideas?

Hello Christos_Ch!

Could you please provide us further information regarding to your issue?

Also, if you are receiving any errors, please send us a screenshot.

God speed!

:trident: New forum moderators!

Thank you for your response yes you are right l am using this code above
let query = {

};
const isInMyLists = inNameMyListings(item[‘name’],digital_listings)
if(!isInMyLists) {

          let listing = await gfapi.listing_post(query);
          await gfapi.upload_photo(listing.id, item['image']);

          await gfapi.listing_status(listing.id, GfApi.LISTING_STATUS.DRAFT);

          await gfapi.listing_status(listing.id, GfApi.LISTING_STATUS.READY);

          await gfapi.listing_status(listing.id, GfApi.LISTING_STATUS.ONSALE);
          await gfapi.listing_status(listing.id, GfApi.LISTING_STATUS.READY);
          await gfapi.listing_status(listing.id, GfApi.LISTING_STATUS.ONSALE);
          await gfapi.upload_photo(listing.id, item['image']);

I know that is obvious that I am uploading the same image 2 time but I have did it for test reasons
the photo is presented on listing photos only once even I have upload it two times, I must also admit that I have changed the upload file size in index.js in order to upload pictures with greater size

If you want to upload more than one image in a listing, you have to specify the order.

yes you are right thank you ! problem solved!