Why slackbot's upload picture link is broken? - bots

Trying to use slackbot to upload and post a message with image. The uploading seemingly works, but the link is broken. What do I miss?

Related

How can I download image using GridFSBucket?

I tried everything I found on internet but nothing solved my problem. I really need help on this problem.
I'm following the tutorial "How to upload/store images in MongoDB using Node.js, Express & Multer" (https://www.bezkoder.com/node-js-upload-store-images-mongodb/).
I successfully uploaded the images. I can see the images on my navigator if I use the url from my backend (http://localhost:8080/chat/files/9f722635-bffc-4d4c-aa71-340c4a488ac2.jpeg). However, I can't use this url to display the image on my frontend (react native).
The problem doesn't seem to be related to my frontend, as I can access images from any other url with the same code. Moreover, when I tried to make a GET request on the postman with the same url, the image is not displayed in the body of the response.
My code is exactly the same of the tutorial.

Send Discord webhook with Webp image

I'm trying to send a webhook to a specific discord channel, however the webhook contains a webp image. I've had this problem multiple times and have never seemed to find a fix for it. Discord just doesn't seem to load webp images, see image below. If anyone knows a workaround that works please let me know, i've been searching for a solution for days.
I even tried to bypass the issue by downloading the webp image with a request via Nodejs, converting it to a JPG image and then sending it through my webhook. However that is pretty incovenient, and I have not managed to download a Webp image with a request since it just freezes at request.
Example image im trying to send with the webhook: https://eu.louisvuitton.com/images/is/image/lv/1/PP_VP_L/louis-vuitton-lv-volt-upside-down-pendant-yellow-gold-jewelry--Q93868_PM2_Front%20View.png?wid=656&hei=656

Facebook Graph API v10 image upload to Pages feed

I'm trying to upload a image to facebook via graph api v10.
i have followed the docs: https://developers.facebook.com/docs/graph-api/resumable-upload-api/
I'm getting the File-Handle as result, but i dont know how to append this File-handle to my Page post. Does anyone know what i can do with this File-Handle to attach it to a Post I'm automatically posting after the file upload was successful?
Thanks!
I´ve got the same problem. In the Facebook Graph API Documentation it says:
When we're done with uploading the data, you'll get a file handle:
{"h":"2:c2FtcGxlLm1wNA==:image/jpeg:GKAj0gAUCZmJ1voFADip2iIAAAAAbugbAAAA:e:1472075513:ARZ_3ybzrQqEaluMUdI"}
This value can be used in place of an uploaded file for subsequent
graph calls.
However, no examples or further explanations are provided on how to use the received file handler.

How to upload image directly to S3 with NodeJS

went on NPMJS but could't find any libraries useful. It looks like nearly all of them requires it first to be stored on the server then upload to S3. Any chance the file can be uploaded directly to S3?
These two links are good sources of uploads to S3.
http://blog.katworksgames.com/2014/01/26/nodejs-deploying-files-to-aws-s3/
http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-examples.html
This blog post explains in detail how you can solve this problem:
https://www.terlici.com/2015/05/23/uploading-files-S3.html
You need to create a signed URL first and after that a user can upload a file directly to S3.

Checking the progress of a video uploading to YouTube - Unpublished Videos

Is there a url I can go to to check the status of video I am uploading to YouTube via the API?
I went to this page
https://developers.google.com/youtube/2.0/developers_guide_protocol_checking_video_status
which told me to go to this URL
https://gdata.youtube.com/feeds/api/users//uploads
But all I got back is an RSS feed of videos that are already uploaded (Published).
I am looking for unpublished videos and the associated progress.
I am using resumable upload so I am think if 10% of the video got uploaded I should be able to see that somewhere?
In Java sample you can request progress status via MediaHttpUploader.getProgress() or MediaHttpUploader.getNumBytesUploaded() "https://code.google.com/p/youtube-api-samples/source/browse/samples/java/youtube-cmdline-uploadvideo-sample/src/main/java/com/google/api/services/samples/youtube/cmdline/youtube_cmdline_uploadvideo_sample/UploadVideo.java#213"
C# would be really similar.

Resources