MG 1.1 Can we use the actual file url?

drastic

Well-known member
I'm trying to share some images on social sites, but since XMG rewrites the name of the image to something like this

https://www.trendingviews.com/media/mister-rogers-best-moment.139/full

instead of this

https://www.trendingviews.com/media/mister-rogers-best-moment.139/imagename.gif

I can't share the images because they simply won't render like a normal image extension filename.

Any way I can just use the image names and extensions instead of the rewrite?

Facebook is a good example - you can't share this: https://www.trendingviews.com/media/mister-rogers-best-moment.139/full because it won't load...

This is particularly for sharing gifs.
 
No, there's no way to do that.

The URLs being in that format is somewhat necessary as the URL is routed internally to the full attachment file so it can go through various permission checks and other stuff. This is actually no different to normal attachment URLs.

Realistically, though, whatever service is receiving the shared URL shouldn't be relying on file extensions to ascertain the format of a file.

upload_2015-12-13_3-12-12.webp

The response headers we send, particularly the content-type, is what should be used by them.
 
That service is Facebook. I tried to share a .gif URL on there and it wouldn't render like normal urls ending in .gif do.

Facebook hasn't stepped up to modern times and permit the upload of animated gifs yet, so we're stuck sharing URLS for now.

Thanks for the reply. I'm sure eventually FB will catch up.
 
Top Bottom