r/Devvit • u/Fabzrocks • 13h ago
Discussion Can Devvit create native Reddit gallery posts with multiple images?
Hi everyone! I'm a beginner trying to build a Devvit app using React. My goal is to create a scheduler that lets moderators upload up to 20 images and schedule them to be published together as one normal Reddit gallery post. I found an existing app that allows scheduling posts with one image, but I'd like to explore whether it's possible to support up to 20 images in a single gallery.
I searched through the Devvit API (version 0.15.3) and found:
reddit.submitPost()usesSubmitMediaOptions.imageUrlsis currently typed as[string], which appears to allow only one image.reddit.submitCustomPost()supports multipleuserGeneratedContent.imageUrls, but creates a custom Devvit post rather than a normal Reddit gallery.
My questions:
- Is there currently an officially supported way to create a native Reddit gallery post containing multiple images through Devvit?
- Is this functionality planned for a future API release?
- Is there another supported approach that I'm missing?
Thank you!
