I have enabled an S3 bucket for user uploads as per Set up file and image uploads to S3 - #264 by wal and I have also enabled AWS Cloudfront CDN.
On my Discourse forum, I have configured the user upload size limit for images and files to be about 8MB.
However, as the server admin, I would like to be able to upload larger files myself, to share with users, and to embed in posts. I would rather not have to change the Admin Settings for max upload size from within Discourse. Rather, I would prefer if I could simply upload the file to my S3 bucket and copy/paste the file URI directly into the post’s markdown embed text and have it “just work”
Is there a way to do this? I have already uploaded my file e.g. s3://discourse-bucket/manual-uploads/funny-video.webm
to the S3 bucket. However, I cannot figure out how to generate the text string to include in a post that will work to embed it.
For example, another small video that is already uploaded is embedded in a post like this; ![small-funny-video|video](upload://AbCdEf132456.mp4)
. But of course, if I just copy/paste a string like this ![large-funny-video|video](upload://funny-video.webm)
it does not work.
Is there some trick to be able to do this?