Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi Our :)
Is it possible to get an absolute URL to an media item inside an component?
I wanna make an request to the ReSmush.It Web Service and they accept this,
For a standard call, with a JSON response, you just have to call this url http://api.resmush.it/ws.php and provide the image attribute like one of these options below :
GET Parameter "img"
POST Parameter "img"
FILES binary sent "files"
The webservice will return an array of informations about the compressed image (see below)
So i'm thinking about just giving them the absolute image url, or should i go with the FILES option?
If you would go with the FILES option how would you do that?
You need to setup domain in culture and hostnames and then call mediaItem.UrlAbsolute() to get Absolute URL in v8.
Hope that will assist.
UrlAbsolute is obsolete in V8.1 .. :)
But i can't get the correct URL method inside my component :/
In that case, please can you try mediaItem.Url(mode:UrlMode.Absolute)
Hope this helps.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted