We’re thrilled to announce that getting your videos into Mux just got a little easier. 🙂 Starting today, you can now push content directly to Mux. 🎉
Up until now, if you wanted to create a new Mux asset, you needed to have that file stored online somewhere first. For a lot of developers, this meant having to build an extra step into their workflow that they didn't otherwise need. We don't like unnecessary extra steps and we suspect you don't either.
The workflow for using a Direct Upload is simple:
Direct Uploads can simplify the workflow just about any time you want to get a piece of content directly from a piece of client software, but it can also be useful on servers or even via your own machine.
We think they especially shine in situations like:
We won't go so far as to say the possibilities are endless, but you certainly have options. Any time you don’t need to keep the original file in your storage before creating a Mux Asset, Direct Uploads are for you.
Let's say you want to upload a file directly from a desktop application. First you'll want to create a route in your application that creates a new direct upload:
Now we've got a route that we can use to make sure only our customers can upload new videos in our application. Now let's see what the browser side of things looks like:
Voila! If you want to make sure your browser clients can reliably upload large files and pause/resume them, we built a tool to help!
For more technical details, check out the guide and, of course, let us know if you have any questions. If you don't have questions, still reach out because we'd love to hear about what you're building. ✌️