🔖 Feature description
Add basic 302 redirection with pseudo paths for files within a share to allow for direct embedding of media content in Discord
🎤 Pitch
Discord uses some pretty basic validation using the reported filename and/or content of a file to decide whether or not it can be directly embedded or not. As an example you can test with https://discord.nfp.is/
This site serves a "fake" path using an extension that matches something Discord will accept (example: *.webm) It then responds with a 302 code saying that the content was "moved" to the actual path, which causes Discord to render the requested content with that path.
This is one solution, where another would be to expose the file extension in the direct file links.
🔖 Feature description
Add basic 302 redirection with pseudo paths for files within a share to allow for direct embedding of media content in Discord
🎤 Pitch
Discord uses some pretty basic validation using the reported filename and/or content of a file to decide whether or not it can be directly embedded or not. As an example you can test with https://discord.nfp.is/
This site serves a "fake" path using an extension that matches something Discord will accept (example:
*.webm) It then responds with a 302 code saying that the content was "moved" to the actual path, which causes Discord to render the requested content with that path.This is one solution, where another would be to expose the file extension in the direct file links.