I read this…
Presumably that works.
My use case
- Because I don’t want my users to need to bother taking the extra steps required to upload a video to YouTube and then, copy and paste that YouTube link into their Discourse posting, and
- because I want videos they attach to their Discourse posting to be uploaded to my company’s YouTube channel,
Functionality I would like
- Assuming a user had attached a video file to a posting they had created on Discourse,
- the file would be programmatically uploaded to my company’s YouTube channel (presumably using the YouTube Data API), and then
- the video (which the user had attached to his Discourse posting) would be programmatically removed and replaced with a link to the YouTube file is displayed as a thumbnail.
Extra information 1
I realize that I could write a Python script that would upload videos located in /var/discourse/shared/standalone/uploads/default/
to my company’s YouTube account.
However, I’d rather not figure out how to remove the attachment from the user’s Discourse posting and concomitantly insert the link to the YouTube file into the user’s Discourse posting.
Extra information 2
In case you are curious, I’m imagining that some users will likely post videos which are larger than 10GB (ten gigabytes).
Extra information 3
I read…
Extra information 4
I also read…