You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i enable the Viewing Files > Enable View Routes it automaticly redirects all request from DOMAIN/123abc.png to DOMAIN/view/123abc.png and not serving as an image for embeds etc.
If i now share this url in a discord channel, it does not embed the image but just shows the link.
My suggestion: Detect the User-Agent from the request,
if its a Browser like User-Agent, redirect to the /view/ url.
if its any other User-Agent (example: including Discordbot/2.0) it serves the raw image.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
If i enable the
Viewing Files > Enable View Routesit automaticly redirects all request from DOMAIN/123abc.png to DOMAIN/view/123abc.png and not serving as an image for embeds etc.If i now share this url in a discord channel, it does not embed the image but just shows the link.
My suggestion: Detect the User-Agent from the request,
Discordbot/2.0) it serves the raw image.Beta Was this translation helpful? Give feedback.
All reactions