Create download link to file in KM

Hi,
In our portal I have configured a couple of KM iViews (on KM repositories) for anonymous access. Works fine.
Now I would like to create a URL to a file in 1 of those repositories. The purpose is that when a user enters that URL in a browser, he/she will be asked if they want to download the file or not.
Does anyone knows if it is possible to generate such a URL?
Under Details -> Settings -> Properties -> Access of a file, there is a target URL. This URL works, but it opens the  file for me and doesn't give the option to download it.
Regards
Edmond

The KM HTTP servlet supports that, but you need to build a different URI.
As far as I recall, for a KM doc such as
http://server/irj/go/km/docs/repository/test.doc
the URI would be
http://server/irj/go/km/docs?action=download&URI=/irj/go/km/docs/repository/test.doc
(this is what you get when you choose "download" from the KM UI).

Similar Messages

  • Creating Downloading Link

    Dear All
    I'm trying to create a downloading link in my iweb using HTML snippet. I created the following code in the snippet
    a href=Movie.mov> Movie
    (I removed the "<".mov" files.
    However, it does not work in Mac ! When I right click and selected download, it downloaded the following "Movie.mov.html". Notice the ".html" extension... for some reason I cannot download the file as a ".mov" file and Mac doesnt allow me to change the extension. FYI, I can play the move in the browser but unable to download unless I have quicktime pro... I do not want users of my website to be buying quicktime pro just so that they can download my files.
    Is anyone able to help ? What changes in my coding do i need in order to allow both PC and Mac users to download ??
    Please help.. thanks a million.
    Jojos

    There are two ways of doing this without any coding. Go to ......
    http://www.iwebformusicians.com/iWebMusicWebsite/iWebTutorials.html
    ... download the tutorial Domain Files and Downloads and look at page 4.

  • Error when using format mask to create download link in report

    I'm following these directions to create a download link in a report region.
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/advnc_blob.htm#HTMDB25905
    ######### Table Structure...
    desc document_library
    Name Null Type
    DOC_ID NOT NULL VARCHAR2(40)
    DATE_ADDED NOT NULL DATE
    FILE_CONTENT BLOB()
    FILE_NAME VARCHAR2(100)
    MIME_TYPE VARCHAR2(100)
    DOC_NUMBER NUMBER
    ###### Report Region...
    select a.*, dbms_lob.getlength(file_content) length
    from document_library a
    ###### Download Link Column...
    Date Format: DOWNLOAD:DOCUMENT_LIBRARY:FILE_CONTENT:DOC_NUMBER::MIME_TYPE:FILE_NAME:::attachment:Download
    ####### Results...
    report error:
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    The report region displays no rows (even though there is one row in the table), no links, and even more strange, it show the value of APP_USER where it would normally display the results.

    Josh,
    Your end result on page 58 and the instructions in that document link don't seem to correlate. Regardless, I:
    1) Copied page 58 to page 158 in your application.
    2) Removed the BLOB format mask from your report link.
    3) Changed your query to:
    select "ROWID",
    "DOC_ID",
    "DATE_ADDED",
    "USER_ID",
    dbms_lob.getlength("FILE_CONTENT") "FILE_CONTENT",
    "FILE_NAME",
    "MIME_TYPE",
    "DOC_NUMBER"
    from "#OWNER#"."DOCUMENT_LIBRARY"
    4) Specified the BLOB format mask for the FILE_CONTENT column.
    Seems to work just fine now (on page 158, that is).
    Joel

  • XML Forms: how to create download link

    Hi,
    can anybody tell me, how i can create a download link to a document rid
    in an XML form?
    I can create a link which will open the referenced document, but "right klick
    link | save target as..." will produce an error, since the link is a javascript call.
    Thanks for any help,
    bye,
    Markus Steinberg

    Hi Markus Steinberg,
         i need to create the Download attachement Option In XML Form..
         U got the solution for that above thread..
         If so please tell me how to create? and then how to create multiple Link ?
    Regards
    Thillai J

  • Download link to file saved in BLOB type in database

    Hi all,
    I have made a page where i am letting users upload a file in any format, and i'm saving it to database in BLOB datatype field of a table.
    The filetype is also saved in a different column of the table.
    Now I want to retrieve the contents back in that particular format by converting the data in BLOB type to filetype.
    And a link should be provided to download the file.
    A little help can be taken from this link which uses EJB session to do the same thing.
    [http://jdev1013.blogspot.com.au/2009/08/file-upload-and-download-in-toplink-adf.html]
    I want to do the same in ADF 11g JDeveloper using Oracle XE database connection.
    Below is the code i used to upload file data - now i want to download file data -
    public String uploadFile() {
    String amDef = "cabinet.model.AppModule";
    String config = "AppModuleLocal";
    ApplicationModule am = Configuration.createRootApplicationModule(amDef, config);
    ViewObject vo1 = am.findViewObject("XfileView1");
    Row row = vo1.createRow();
    if (uploadedFile.getFilename() != null){       
    byte[] array=new byte[(int)uploadedFile.getLength()];
    row.setAttribute("FileName", uploadedFile.getFilename());
    row.setAttribute("FileContent",createBlobDomain(uploadedFile));
    row.setAttribute("FileType", uploadedFile.getContentType());
    row.setAttribute("FileSize", uploadedFile.getLength());
    vo1.insertRow(row);
    am.getTransaction().commit();
    DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcItteratorBindings =
    bindings.findIteratorBinding("XfileView1Iterator");
    dcItteratorBindings.refresh(1);
    Configuration.releaseRootApplicationModule(am, true);
    return "added";
    private BlobDomain createBlobDomain(UploadedFile file)
    // init the internal variables
    InputStream in = null;
    BlobDomain blobDomain = null;
    OutputStream out = null;
    try
    // Get the input stream representing the data from the client
    in = file.getInputStream();
    // create the BlobDomain datatype to store the data in the db
    blobDomain = new BlobDomain();
    // get the outputStream for hte BlobDomain
    out = blobDomain.getBinaryOutputStream();
    IOUtils.copy(in, out);
    catch (IOException e)
    e.printStackTrace();
    catch (SQLException e)
    e.fillInStackTrace();
    // return the filled BlobDomain
    return blobDomain;
    Thanks
    Cheena Malhotra

    Check my 3 part blog about this. This should cover your needs. http://wp.me/pcBZk-aU
    Timo

  • How to create downloadable links?

    I am trying to learn to use Adobe Creative Suite 3.  I have used Dreamweaver 3 to create a website hosting some lectures in flv format.
    I would like my viewers to be able to download the videos.
    Would be grateful if someone can tell me how to do it?
    My site is http://www.bereanbibleexpositions.org.  Other constructive suggestions are welcome as I am a newbie.
    Thank you very much.
    Nickyee

    Hi Murray ACP,
    Thanks for the comments
    Focusing on the screwdriver rather than the carpentry is a bad idea.  With Dreamweaver, you would be much better off leaving the CD in the box while learning HTML and CSS.  Without knowledge of those two, 'learning Dreamweaver' will be frustrating and tedious.
    I did learn a little of HTML and CSS.  Learning was easy.  But with a memory like a sieve, I forgot almost as soon a I learned.  So I just focus on what I need to get the job done.
    Since you have stated you are using Creative suite 3, I am also assuming that you are also using DW CS3 rather than DW3 (vintage ~1999).
    Yes, you are right.
    Hans pretty much has you covered here.
    Yes, almost.  Now, my flv files are sorted out.  Only the MP3 files refuse to be downloaded.

  • How do I create a downloadable link from an Interactive PDF file created out of InDesign CS6?

    Hello,
    I created an Interactive PDF file out of InDesign and would like to make the large file a downloadable link and share it with the user in an email. I do not want to use DropBox or GoogleDrive.
    The company I contract for has their own site - do I insert the file into the site or can I create a separate link for it?
    I will be recreating these presentation PDF's constantly, so I would like to know if there is a simple way to create this link for files in the size of 7-12MB.
    Any ideas on downloadable links? I do have flash - but rarely use, perhaps load the file out of flash?
    Thank you so much for your help,
    Megan

    Hi Willie,
    Thanks for your help. Most likely contact the company who maintains the
    site then to share the file with them I'm assuming?

  • How to Create SMB Links?

    At work, we have a Windows file share that I can access via my Mac using Connect to Server. However, I want to create SMB links to files stored on the file share and reference these in emails instead of attaching files as attachments. How do I easily create SMB links in OS X?
    When I do a Get Info on a file, a SMB link is shown in the Server: field, but I cannot highlight and copy this text. Any ideas how I can either generate a SMB link for a file stored on a Windows file share or "access" the SMB link provided in Get Info?
    Thanks!

    make sure finder is the app listed on the menu bar... hit Command+K... should bring a connect to server... type it all in then click the '+' button to add to your favorites. you can easily copy from there.
    If you're sending links to mac users it should be easy... windows, however, might not be as, i believe, they use the '\\server\share\folder\file' format without the 'smb:' prefix... plus, it's back slash in windows and forward slash in os x.

  • How to create hard links in the Finder?

    Does OS X provide any way to create hard links for files, or is using the Terminal and the "ln" command the only way to do so?

    You can create an alias in the Finder using File -> Make Alias or by command-option-dragging a file. An alias is similar to a hard link. If you're already aware of this and specifically want to make a hard link and not an alias, that's something you'll have to do in the Terminal.

  • ICloud functionality at all re: download links or sharing

    Im sure this has been asked 1M times b4, but does iCloud have any iDisk functionality at all re: creating download links or sharing beyond my own devices?

    riece wrote:
    Im sure this has been asked 1M times b4, but does iCloud have any iDisk functionality at all re: creating download links or sharing beyond my own devices?
    No iDisk functionality at all, look to 3rd party providers, eg: SugarSync, Dropbox etc.

  • How can I create a link to download a file in Captivate?

    So, in my Captivate file, I want people to be able to download an XML file to their machine.  If I create a hyperlink to "open a file", then when a user clicks on it, captivate attempts to open the xml file in a browser window instead of downloading it.  I can't figure out how to use the download attribute for an href in captivate and I'm not sure if javascript to do this would execute properfly.  Anybody know the best way to accomplish a force download of a file from a captivate presentation (Captivate 6)?
    TIA.

    If you want to really do this so that it is consistent for all browsers, you'll need to implement this at the server level.  I did this with the Dynamic PDF Export Widget.  Typically, a PDF will be displayed in the browser, but I added the ability to download it instead.  It does require a PHP file (or some other server side script).  In the PHP file, you'll want to set the response header for Content-Disposition to "attachment"... that's the key.
    The elbow grease part has to do with managing how the browser handles the link.  You'll want the Captivate hyperlink to open a new window so that the student does not navigate away from your course in the current window.  But since you are opening a PHP file, you can inject javascript into the document of the new window/tab to close itself.  The download will still continue eventhough the window/tab was programmatically closed.  However, most modern browsers will automatically close the window/tab for you when downloading a file.  If you want to see an example of a PHP file that implements this, go ahead and download the trial version of the Dynamic PDF Export widget.  You'll see the create.php file in the zip package.
    http://captivatedev.com/2012/07/25/adobe-captivate-6-x-widget-dynamic-pdf-export/
    If you want to go simple as TLC Media Design suggested, just zip it and let your students unzip the xml file, or just rename the xml file with a .zip extension and tell them to rename the file back to .xml after downloading.

  • Creating a file download link on jsp

    I have the following on my jsp. The code worked fine until I tried to use it in a new html design page.
    <code>
    //page name is index.jsp
    try //DISPLAY THE CONTENTS OF THE DATA DIRECTORY
    File dirname = new File(PATH); // create an instance of the File class
    if (dirname.exists()&&dirname.isDirectory())//check to see if File class dirname exists and is valid
    String [] allfiles = dirname.list();//create an array of files in the dirname File class
              for (int i=0; i< allfiles.length; i+=2)//loop through allfiles[] and print out file links
    out.println("<br><table border='1' cellspacing='1' width='99%'>");
                   out.println("<tr><td width='50%' class='pageFont'><input type='checkbox' name='cb' value='"+allfiles[i]+"'>"+allfiles[i]+"      ");
    %>
    <a class="a" href="index.jsp?downfile=C:\\data\\<%=allfiles[i+1]%>">DOWNLOAD</a></td>
    <% if(i+1 < allfiles.length)//PRINTS OUT THE SECOND TD SO THAT WE HAVE 2 COLUMNS OF LINKS
    out.println("<td width='50%' class='pageFont'><input type='checkbox' name='cb' value='"+allfiles[i+1]+"'>"+allfiles[i+1]+"      ");
    %>
    <a class="a" href="index.jsp?downfile=C:\\data\\<%=allfiles[i+1]%>">DOWNLOAD</a></td></tr>
    <%
    out.println("</form></font></table>");
    catch (IOException excep)
         out.println("An IO exception has occured.");
    </code>
    Then when clicked this code is run:
    <code>
    try{
    //CHECK TO SEE IF THE FILE HAS BEEN CLICKED TO DOWNLOAD SINGLE FILE
    if (request.getParameter("downfile") != null)
    String filePath = request.getParameter("downfile");
    File f = new File(filePath);//CREATE AN INSTANCE OF THE FILE CLASS AND POINT IT TO THE LOCATION OF THE DIRECTORY CONTAINING THE FILES
    if (f.exists() && f.canRead())
    response.setContentType ("application/octet-stream");
    response.setHeader ("Content-Disposition", "attachment;filename=\""+f.getName()+"\"");
    response.setContentLength((int) f.length());
    BufferedInputStream fileInputStream = new BufferedInputStream(new FileInputStream(f));
    int i;
    out.clearBuffer();
    while ((i = fileInputStream.read()) != -1) out.write(i);
    fileInputStream.close();
    out.flush();
    </code>
    When I click on this link I get the download dialog box. If I open it I get the following open up in notepad(the files I am trying to give download links are .txt files)
    Below is what is displayed in notepad ALL on 1 line:
    <html>
    <head>
    <LINK rel="stylesheet" ty
    That is displayed in all of the links that I click on. It is the first few lines of html code for index.jsp.
    I know this code is probably not a good way of doing what I need but I got it to work fine until the change.
    I am sure there is an easier way to code the download link without resubmitting the page.
    Thanks in advance!!

    Well all was fine with this jsp until I moved it to ApacheJServ. Now the problem has resurfaced(although it is a little different now)
    I had moved the following code to the top of my page:
    //CHECK TO SEE IF EITHER DOWNFILE OR ZIPFILE VARIABLE EXIST, AND IF THEY DO SET CONTENT TYPE BEFORE SENDING ANY HTML CODE TO THE BROWSER
    try{
    //CHECK TO SEE IF THE FILE HAS BEEN CLICKED TO DOWNLOAD SINGLE FILE
        if (request.getParameter("downfile") != null)
                String filePath = request.getParameter("downfile");
                File f = new File(filePath);//CREATE AN INSTANCE OF THE FILE CLASS AND POINT IT TO THE LOCATION OF THE DIRECTORY CONTAINING THE FILES
                    if (f.exists() && f.canRead())
                        response.setContentType ("application/octet-stream");
                        response.setHeader ("Content-Disposition", "attachment;filename=\""+f.getName()+"\"");
                        response.setContentLength((int) f.length());
                        BufferedInputStream fileInputStream = new BufferedInputStream(new FileInputStream(f));
                        int i;
                        out.clearBuffer();
                        while ((i = fileInputStream.read()) != -1) out.write(i);
                            fileInputStream.close();
                            out.flush();
                            response.flushBuffer();
    catch (Exception e){}
    //This is where the java code ends and the javascript/html code begins.Then further into the page I create the file download links like so:
                            <a class="a" href="main.jsp?downfile=C:\\data\\<%=allfiles[i+1]%>">DOWNLOAD</a>I know this isnt a secure way of doing this but I am on a intranet.
    The problem I am having now is that when I click on one of the links and download the file and then open it, I get the contents of the file plus concatenated to the end of it is the first few HTML lines of the actual jsp that I downloaded the file from. Before I was just getting the first few lines of html from the jsp, not the actual contents of the downloaded file.
    This is an example of what I am getting:
    This is the contents of the file that I downloaded.//This is where the file contents ends.
    <html>
    <head>
    <LINK rel="stylesheet" type="text/css" href="default.css">
    <script language="JavaScript1.2">
    //function that allows user to select all checkboxes
    function doIt(v)
    for(var i=0;i<document.form1.cb.length;i++)
       document.form1.cb.checked=eval(v);
    function swap(imageName,image)
    imageName.src = "templateImages/"+image;
    function imageOver(imageSrc, imageName)
         changeImage = new Image();
         changeImage.src = imageSrc;
         document.images[imageName].src = changeImage.src;
    var hide = true;
    function hideShow( ) /
    Any morre ideas?
    TIA!
    BTW, I went to ApacheJServ because they wont let me use tomcat :(

  • How do you create a link to download a PDF file?

    I'd like to create links so that when clicked, a PDF file associated with the link will automatically be downloaded. I've created a folder where I've stored all of the PDF files, but where on my web host do I put the folder--is it part of the published iWeb folder or should it be kept separate? (I'm using a 3rd party web host, Lunarpages.com)
    Second, to create the links, I've written "Download Page" on for each link, highlighted the words, then enabled it as a hyperlink with the inspector. However, this changes "Download Page" to the name of the PDF file. How can I keep the words "Download Page" without changing it to the name of the file? Also, is this the correct way to have a PDF file automatically downloaded when "Download Page" is clicked?
      Mac OS X (10.4.7)  

    Hi there,
    While I do not use iWeb, I do use PDF files on my website.
    I first create a new folder to hold my PDF files and upload this to my website. When I create and upload PDF files I will upload to this folder. When someone wants to view this files, all they need to do is click on the link I created. After clicking on link, if the user is on a PC, Acrobat Reader is automatically used to view the file or if they are on a Mac, Preview is usually the default viewer (if the they are using Safari, it will simply open in Safari). Just having the extension on yourfile.pdf will cause this and you will not need to do anything else on your end.
    FOR EXAMPLE: Download Sample PDF - try it on different browsers and PC's
    As far as 'download page', it automatically starts as soon as you click on link. If you are talking about 'saving' the user will always have that option on their end...
    Rick
    iMac G5 iSight 20" - 30G iPOD in Slimming Black -   Mac OS X (10.4.7)   - HP Pav 15" WS and Toshiba Sat 17" WS LP's - Canon 20D & A620

  • How to create a shortcut and/or how to link a file into the applicatio​n/download folder

    I would like to link a generic button of the keyboard to a file (xls, or multimedia or...) or to an application. Is it possible? I see that is possible to create a link only to a contact!
    I'm also interested in moving/link some executable files (like .xls) into the application or download folders... it can be done but I cannot see any icon when I open the Directory from the main menu.
    thanks
    giona

    Are you dragging it to the right side of your Dock? I've got 3 shorcuts to Windows servers in my Dock and put them there simply by dragging.

  • How to create a download link for video file?

    Hello guys,
    I know this is not a question directly related to OS X, but I just can't find a solution. So I was hoping that some of you might know the answer, or could recommend further reading.
    I have .mov video files (video footage) on the server. I would like to make these files accessible for download, via link.
    So I am wondering .... how can I create a link, which would allow people to download .mov video files from the server?
    Thanks for any advice or tip.

    The question is, where is the server?
    Is it on its own static IP? If it is not, it likely is on a DHCP configuration.
    For those with DHCP, I recommend http://www.dyndns.com as a workaround, otherwise the links given will have to change as often as every hour!
    Is it on a router, or does it have a firewall turned on in its sharing preferneces? Routers and firewalls block direct access from the outside. You need to setup the web sharing access on your router or firewall before someone can access it via the web.
    Is the .mov file saved via Quicktime? You would also need to provide link on your page to http://www.apple.com/quicktime so that it may be downloaded by those who don't have it. If it is another format, you'll need a link to whatever format it is.
    HTML for putting the video right on the page is usually controled by the EMBED function. That's covered here:
    http://www.htmlcodetutorial.com/embeddedobjects/_EMBED.html
    Otherwise a simple hyperlink to the file will do, once you have an open web sharing port on a static IP or dyndns controled domain.

Maybe you are looking for

  • ProgramID creation/IDOC monitor

    Hi I have done  scenario BAPI-XI-IDOC using XSLT mapping. I'm calling BAPI on same server(R/3) and posting  IDOC on same(R/3) . 1. but unable to find any mesages in SXMB_MONI and MessageMonitor in RWB? 2. I dint find any IDOC adapter running in compo

  • ECR/ECO Workflow not working for multiple Objects

    Hello all, We have implemented ECR/ECO workflow by customizing the SAP standard one. We are facing a problem when entering multiple ECO objects such as mutiple Documents, materials, BOMs etc. When we create the ECR, two parralel workflow start (one f

  • Why can't my buddy see video on import

    Maybe you guys can help me. My buddy has a mac book air with an OS that uses QUICK TIME X. I guess he has SN or Lion. Anyway, I shot him some HD video in 720p 30fps and gave him a .mov file of the footage so he can learn to edit in imovie. I used FCP

  • My ipad 4 is not charging I just made it iOS 7

    My Ipad 4 does not charge there's a weird thing when I turned it off or my battery is dead i usually am praying for hope that it charges when it dead so I let it dead while my USB port is connected when I turned it off it charges 40% for the last 6 h

  • Crash while reformatting

    Just now I reformat my mac, after I restored my backup from an external hard disk, it restarts and after that it hangs at the startup apple logo, I went out for dinner for 50 mins and it was still loading there, so I switched my mac off and on again,