Reddit's Devvit apps run in a sandboxed iframe with strict security policies. This creates fundamental limitations that cannot be bypassed.
- Issue:
<input type="file">is blocked in Reddit's mobile webview - Error: Silent failure - file picker doesn't open
- Reason: Reddit app's sandbox doesn't allow file system access
- Workaround: Use desktop browser to upload documents
- Issue: Download attribute is blocked
- Error: "Download is disallowed. The frame is sandboxed, but the flag 'allow-downloads' is not set"
- Reason: Reddit's iframe sandbox policy
- Workaround:
- Right-click image → "Save image as..."
- Or open image in new tab → save from there
- Issue:
capture="environment"attribute doesn't work - Reason: Camera API blocked in sandbox
- Workaround: Take photo with camera app, then upload from gallery (desktop only)
- File uploads work perfectly on desktop browsers
- Chrome, Firefox, Safari, Edge all supported
- Drag-and-drop would also be blocked (same sandbox)
- All uploaded documents viewable on any device
- Images display properly
- Metadata (description, notes) accessible
- Works on both mobile and desktop
- Confirmation modal works properly
- Opens image in new tab/window
- From there, users can save manually
- ✅ Upload documents
- ✅ Add descriptions and notes
- ✅ View all documents
- ✅ Right-click to save images
- ✅ Delete unwanted documents
- ✅ View documents uploaded from desktop
- ✅ Read descriptions and notes
- ✅ Open images full size
- ✅ Delete documents
- ❌ Cannot upload new documents
- Pro: Simple, works within Reddit's constraints
- Con: Mobile upload not possible
- Best for: Desktop-primary workflows
Create a separate web app outside Reddit:
- Users upload to external site
- External site syncs to Devvit via API
- Requires:
- Separate hosting (Vercel, Netlify, etc.)
- API endpoint in Devvit
- Domain whitelisting from Reddit
- More complex architecture
Use Reddit's image hosting:
- Upload images as Reddit posts/comments
- Store references in Redis
- Requires:
- Different UX (posts instead of direct upload)
- Reddit API integration
- Public visibility (unless private subreddit)
Remove images entirely:
- Users type/paste text content
- No file uploads needed
- Works everywhere
- Loses document scanning functionality
Reddit's iframe likely has:
<iframe sandbox="allow-scripts allow-same-origin">Missing attributes that would enable features:
allow-downloads- Would enable downloadsallow-forms- Might help with file inputsallow-popups- Would help with new windows
- Sandbox attributes are set by Reddit (parent page)
- Apps running inside iframe cannot modify them
- This is intentional security design
- Prevents malicious apps from accessing user files
- Desktop Chrome/Firefox: File uploads work
- Mobile Chrome/Firefox: File uploads blocked
- Reddit Mobile App: Most restricted (uses webview)
- Mobile Safari: Sometimes works, often doesn't
We've added warning messages:
- Yellow banner on mobile upload screen
- Info box on download screen
- Explains limitations clearly
- README updated with limitations
- USER_GUIDE explains desktop-only upload
- This LIMITATIONS.md for developers
- Standalone web apps: Full file access
- Browser extensions: Full file access
- Native mobile apps: Full file access
- Electron apps: Full file access
- Sandboxed iframe (most restrictive)
- No native mobile app option
- No browser extension option
- Must work within sandbox
- Upload from desktop - Most reliable
- View on any device - Works everywhere
- Use right-click to save - Workaround for downloads
- Keep important docs backed up - Export metadata regularly
- Set expectations early - Document limitations
- Provide workarounds - Right-click, open in new tab
- Focus on what works - Viewing, organizing, searching
- Consider alternatives - External services if needed
allow-downloadsflag → Downloads would work- File API access → Mobile uploads would work
- Camera API → Direct photo capture would work
- No indication Reddit will change sandbox policy
- Security is priority over convenience
- Unlikely to change soon
Document Manager works best as a desktop-upload, cross-device-view solution.
Mobile users can:
- ✅ View all documents
- ✅ Read descriptions/notes
- ✅ Delete documents
- ✅ Open images full size
- ❌ Cannot upload new documents
⚠️ Downloads require workaround
This is a platform limitation, not a bug. The app works as well as possible within Reddit's security constraints.