Currently sharedLink url for a file is of html type.
How can I directly get image url to share instead of getting url of html type.
Currently I'm getting below url as sharedLink for an image, which is of html type
https://app.box.com/s/53auzqp2sdx2ki9dl8kw
How can I directly get url with image extension as below, which I got by inspecting above link in browser.
https://app.box.com/representation/file_version_20217702945/image_2048_jpg/1.jpg?shared_name=53auzqp2sdx2ki9dl8kw
Related
Inline with this thread
How do we get the document file url using the Watson Discovery Service?,
I tried adding url field inside HTML document under various tags like p, directly as
<"url">...<"/url"> etc inside <"body"> tag.
Whatever I do, this url field that I am trying to add is not getting reflected either under extracted_metadata or under html or under text in the json when I see the resulting json after conversion / enrichment in the discovery tooling. Can someone throw some hint on what I can do to get url field just like title under extracted_metadata section in the json output?
How can I fetch the URL from images stored in Parse?
I have made an app where I can store images into Parse (works fine).
But how do I retrieve the URL from the image stored in Parse so I can show it in a web browser by typing the URL?
Can I see the URL for the images stored in Parse anywhere?
I'm thinking something like this:
https://www.parse.com/apps/ClassName/collections#class/Photo/CzEgPXalzM
You can get the url of the image from the PFFile object containing the image like this:
NSString *urlString = yourImageFileFromParse.url;
I created a hyperlink to a file. the file name contains hashtags as a means to separate information.
<div style="height:100%;width:100%">.</div>
translated to...
http://localhost/dir/upload/1427853638#0#file#A101.pdf
Is this a "legal" name in a URL? Im getting a "file not found" error
The requested URL /dir/upload/1427853638 was not found on this server.
So, clearly the # has another meaning in the URL (I understand now, its a location hash property). Is there a way to get this to work, or do i need to use another character besides the # in the file names?
Since # is a special character in the URL semantic (it's used to provide an internal anchor in a HTML page), it should be URL-encoded into %23.
Your URL should be: http://localhost/dir/upload/1427853638%230%23file%23A101.pdf.
NB: you can find an online URL encoder here: http://meyerweb.com/eric/tools/dencoder/
I have string data in the form
http://site.com/location
file://server/folder/
I am showing the data as links so clicking on the link takes you to the appropriate web site or file location. Clicking on a link built from 'http://...' data works fine but I get an 'unable to display web page' message when I click on a link built from 'file://' data.
I'm building the link using Html.ActionLink, passing the data as a parameter to a HandleLink method on the controller. The HandleLink method just does Redirect(data). I know the data is coming in correctly because I can copy the incoming value in the debugger and paste in in the address bar of my browser and that works as expected.
How can I make the 'file://' links work correctly?
EDIT: I botched the first question I asked here -- I hope they have a badge for that. The 'file://...' data items are to a folder, not a specific file. Does that make any difference?
As mentioned above, you can't use file:\ to get files on a remote server however you can serve the files using something like the following:
public FileContentResult GetFile(int fileID)
{
string fileName = GetFileNameFromID(fileID); //Retruns path and filename on server
string contentType = "text/csv"; //or other appropriate type
return new FilePathResult(fileName, contentType);
}
Much more info here
I am using symfony 1.0 and below is the URL which displays the news description.
http://news4u.com/search/news/id/344158/css//act/n
In the above URL value for CSS is missing and the URL is supposed to be as below
http://news4u.com/search/news/id/344158/css/n/act/n
When I use $this->getRequestParameter('css') to get the value of css, I get it as 'act' and if the do the same for 'act', I get empty value.
$getRequestParameter('css')=act
$getRequestParameter('act')=<EMPTY>
I am getting values for above parameters for the metioned URL.
I want to get value of 'act' in above URL. How to get that?