WhatsApp Attachment Twilio

96 views
Skip to first unread message

Bussury Omary

unread,
Apr 9, 2022, 11:21:56 AM4/9/22
to rapidpro-dev
hello Team,
 I can send text message from WhatsApp via Twilio  to rapid pro, but when I send image or video, I cant display image/video in RapidPro.
I have attached image for further clarification.

Screenshot 2022-04-09 at 18.18.02.png  

when I click the image to view or download this is giving me

Screenshot 2022-04-09 at 18.17.32.png
and 
Screenshot 2022-04-09 at 13.58.20.png

Rudi Giesler

unread,
Apr 11, 2022, 3:54:05 AM4/11/22
to Bussury Omary, rapidpro-dev
Hi!

For attachments, you need an S3 compatible service hooked up to store and serve attachments.

That config will need to be in courier (which receives and stores the messages), and the rapidpro django application (which generates the URLs for the images)

Regards,
Rudi

--
You received this message because you are subscribed to the Google Groups "rapidpro-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rapidpro-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rapidpro-dev/e0474452-1df8-49d7-bd19-4ea5df51c7bcn%40googlegroups.com.

Bussury Omary

unread,
Apr 11, 2022, 4:03:33 AM4/11/22
to Rudi Giesler, rapidpro-dev
Thank you for the clarification. 

Bussury Omary

unread,
Apr 17, 2022, 4:20:04 PM4/17/22
to rapidpro-dev
Hello team,
Im just want to know if there is any way/url out of S3 service to access the images stores in Courier storage folder.
It seemed all whatsApp attachment are stored in that folder if no s3 available
Screenshot 2022-04-17 at 20.52.18.pngScreenshot 2022-04-17 at 23.03.31.png

Rudi Giesler

unread,
Apr 20, 2022, 2:59:41 AM4/20/22
to Bussury Omary, rapidpro-dev
Here is in the code where it falls back to file storage if no S3 storage is configured: courier/backend.go at main · nyaruka/courier (github.com)

You can see here though: gocommon/fs.go at main · nyaruka/gocommon (github.com) , that the filesystem storage is only suitable for unit tests. So it's not designed for actually running RapidPro, just to be able to run the courier tests without needing S3.

So you have to have an S3 or S3 compatible service to be able to use media in Courier.

You can add to your webserver config to serve files from that folder, but I don't know what effect it will have, or how it will interact with the other components of RapidPro, since it's not a supported configuration.

Regards,
Rudi.

Reply all
Reply to author
Forward
0 new messages