How to make a post using a file that was manually uploaded to the web server or S3 bucket?

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?

![small-funny-video|video](upload://AbCdEf132456.mp4) is a markdown syntax where the URL can be placed inside the parentheses. You don’t need to necessarily use a link that starts with upload://.

For your situation, you can first generate a direct link to the file in your S3 bucket, for example, https://discourse-bucket.example.com/manual-uploads/funny-video.webm, and then in the editor, you would fill in ![large-funny-video|video](https://discourse-bucket.example.com/manual-uploads/funny-video.webm).