Create file attachment from an extension

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
MitjaStachowiak
Registered User
Posts: 16
Joined: Mon Dec 30, 2019 7:29 pm
Location: Reinheim, Germany
Contact:

Create file attachment from an extension

Post by MitjaStachowiak »

Hello,
for my Email-On-Topic-Extension, I've written a bridge for Telegram-Channels (not yet in the release). A forum topic can bidirectionally synchronize with a telegram-channel, but such tings like images are ignored.

I would need to import files from telegram as attachments into phpBB with my extension. The bot-user used to bring telegram messages to bhpBB, does not login. The telegram-Webhook is verified by an extra-password and the extension writes the posts directly to the database without user login.

So which functions should I use to create an attachment? There should still be checks for allowed file extensions.
User avatar
ViolaF
Registered User
Posts: 1525
Joined: Tue Aug 14, 2012 11:52 pm

Re: Create file attachment from an extension

Post by ViolaF »

What a great Hack this would be :mrgreen:
Awaiting solution :geek:
rxu
Extensions Development Team
Posts: 3363
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: Create file attachment from an extension

Post by rxu »

Post Reply

Return to “Extension Writers Discussion”