Simple File Item

Hi,
I am new to portal development, and i need to add some links in a page , so that clicking the link download a file, i used a simple file item, but i need to know how to prevent the user from downloading if he is a public user and hasn'y yet logged in.
i want to display a message " you have to login in first" or redirect him to the login page

You can use Enable item level security,
Page properties >> Access tab >> check the box 'Enable Item Level Security'.
Then, Edit file item >> Access tab >> grant the required access.
Thanks,
Krishna

Similar Messages

  • File items link leads to 404 error

    Hi,
    When I add a File or Simple File item to my item region using the add items wizard and return to the view page, the item links to an invalid page, and I get a 404 error.
    The item link loos like this:
    /pls/portaldev/url/ITEM/B3B27605810043BBE0340003BA12D750
    When I view the properties for the item there is a link that looks like this:
    /pls/portaldev/docs/PAGE/TEST/TEST3.TXT
    And that link works fine.
    Does anybody know what the problem is? Or where you think I should start looking for a solution?
    Regards,
    Joe

    We are on 9.0.2.6 (running on Linux). We believe the problem first showed up when we upgraded from Release 1 to Release 2 (9.0.2.3).
    The browser is Internet Explorer 5.0 w/SP2.
    Thanks for your help.

  • In-place rendering of file item

    Hi,
    I'm currently using the Early Adopter version of Portal.
    Is there simple way of displaying a file item type in-place, i.e. rendered in the folder content area? I know this does not apply to binary file types but for html files it would be OK.
    I have managed it by first uploading the file item, then create a URL item that points to the file item but is there a more simple way to do it?
    For binary files (ex. a word-doc) I also would like to be able to specify "Open in new Window" but this functionality seems to be missing to.

    Johan,
    This is not part of the functionality in the current version of the product. We are considering adding this type of functionality in a future release.
    Rich

  • Does simple file and folder sharing on an iMac work with OSX Server?

    Hi There
    I wonder if I should install OSX Server on an iMac wher several users work on the same files and folders.
    My question - before I do something I might regret:
    Does simple file and folder sharing on an iMac within several users really work with the help of OSX Server?
    All I want to be able to do:
    Admin creates a new folder1 and gives it read- and write access for user1 and user2.
    User1 creates a subfolder1 in folder1, and a document1 in subfolder1.
    User2 edits document1. Later Admin edits document1.
    All these simple editing of files and folders (and subfolders) within a main folder should be possible. This is not possible now.
    Is everything clear? I'm not a network specialist or something, I just want to give some co-workers access to some data on my computer without problems.

    So what you need are recursive permissions.
    I suggest you create a group and add user1 and user2 to that group. You can name that group whatever you want, but for now i will call it FSUsers
    Execute this in terminal. Replace FSUsers with your new group
    sudo chmod -R +a "FSUsers allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextat tr,writeextattr,readsecurity,file_inherit,directory_inherit" /Users/Shared/*
    Replace /Users/Shared with the location of your shared folder. Make sure you keep the /* at the end (this allows all subfolders and files to get the same permissions.
    If you need to add people to the share just add them to the FSUsers group, the FSUsers group should should also be allowed in the sharing preferences.

  • ORA-29861 Error while editing or adding search keywords in a File Item

    Hi,
    We are getting the following error while editing or adding search keywords to a file item:
    ORA-29861: domain index is marked LOADING/FAILED/UNUSABLE
    DAD name: portal30 PROCEDURE : PORTAL30.wwv_edit_tab.edititem
    Can you please tell us what went wrong.
    Thanks

    Vikas,
    From the server error messages reference:
    Cause: An attempt has been made to access a domain index that is being built or is marked failed by an unsuccessful ODCIIndexCreate or is marked unusable by a DDL operation.
    Action: Wait if the specified index is marked LOADING Drop the specified index if it is marked FAILED Drop or rebuild the specified index if it is marked UNUSABLE.
    It's possible you were loading the document while the index was being rebuilt. Search all_indexes where DOMIDX_STATUS <> 'VALID' OR DOMIDX_OPSTATUS <> 'VALID' to find the offending index and rebuild it.
    Regards,
    Jerry
    null

  • Internal server error when adding a file item

    Hi Gurus,
    We have Portal 9.0.2.0.1. We add all our documents to portal as file item. I am getting the following error when I try to add a file item. The file size varies from 1 MB to 10MB. It's all .pdf or .doc files. I am able to add 1 or 2 files, then I get this error.
    please post a reply if you have any idea about this one.
    Thanks
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    Oracle HTTP Server/1.3.22 Server at prtl.nw.us Port 7778

    I suggest that you log a TAR and work with Oracle Support on resolving this problem.
    Regards,
    Jerry
    PortalPM

  • Error in simple(File-XI-File)scenario

    Hi,
    Using this blog i was doing simple(File-XI-File)scenario.
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    But i am getting the error
    Runtime error
    com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_FILE_TO_FILE_CC_: Fatal Error: com.sap.engine.lib.xml.parser.
    What could be the problem ?
    Thanks.

    Hi,
      Check ur Mapping objects and do test it in the test tab of MM or IM before activating.Once it is done do activate it.
    Refer to below links as well:
        /people/srinivas.vanamala2/blog/2007/02/05/step-by-step-guide-xml-file-2-xml-file-scenario-part-i
        /people/srinivas.vanamala2/blog/2007/02/05/step-by-step-guide-xml-file-2-xml-file-scenario-part-ii
    Cheers,
    Prasanthi.

  • How to view file item count in finder window?

    Hi all,
    Pre-Lion, I had things set up so that I was able to view the number of files/items in a finder window that was in list view. This information would show up at the bottom of my finder windows. I know I had intially pressed some kind of OS X shortcut to get it to show up there and now would *really* like to be able to easily view that information once again. Not only did I get a file count, I was also shown a file path if I clicked on one of the files in the finder window.
    For the life of me though I just cannot remember how to do this. Can anyone help me out?
    Thank you very much in advance:)
    Christine

    Got it! That was SO EASY...thank you very much

  • Displaying file items in-line

    I want to be able to display a HTML file that I have loaded into my content area in-line. You can do this with text items, but are limited to 32K.
    Are there any plans to enable this for file item types.
    Or has anybody done this before.
    URL items are not an option I have 11000 documents.
    null

    Am not sure if you will want to do this considering you have so many files ... it is a cumbersome wayout but you can try this
    1. Upload the file and then hide the item you just added.
    2. Now define a link in your folder pointing to the hidden file - you can display the file in your content area.
    You can keep a folder that will contain the hidden files.
    Rama Krishnan

  • How to create a simple File structure for a large project?

    Hi to all,
    I've own and operated my own website design/development (a 1 woman office, plus many sub-contractors) over the period of 8 years. I started hand-coding HTML sites in 1997, before the creation DW (though I think the first ver was for Mac in '97). Over the recent years I've udated my skills to include CSS and enough Java/PHP to customize and/or troubleshoot current projects (learn as I go).
    The majority of my clients have been other 1-10 person entrepreneur companies. I've recently won a bid to redesign a government site which consist of 30 departments, including their main site.
    The purpose of this thread is to get some ideas on creating a file management/structure. Creating file management setup for smaller companies was a piece of cake, using a simple file mgmt structure within DW. Their current file structure is all over the place. I've read about a very good, simple file struture in a DW CS4 manual and wanted to get feedback on different methods that have worked, and have not worked, or your client:
    Here's my thinking:
    1. within the root dir place home.htm and perhaps a few .htm related only to home
        2. create the following folders off the root, "docs, imgs/global, CSS, FLA, Departments"
                - sub folders within docs for each dept
                - site wide css's placed into CSS
                - site wide FLAs into the FLA
                - sub-folders created within 'imgs' for each dept, including a 'global folder' for sitewide images and menu imgs (if needed)
    - OR -
    1. create same file structure for each dept folder, such as 'imgs/CSS/FLA/Docs'
    Open for suggestions....
    Ciao

    It is a problem I have thought over at length and still feel what I use could be better. You are doing it the right way around researching before you start, as moving files once things are underway can course real problems. One issue is the use of similar assets across site(s), and version control if you have multiple versions of the same asset.
    Can not say I have built a site(s) of that size but would recommend putting together a flow chart to help visualise the structure and find out better ways organising (works for me). Good luck, post back with your solution.

  • Is there a limit to number of File items loaded to a single portal page?

    Hi,
    Does anyone know if there is a limit to the number of File items that can be loaded to one single portal (10.1.4) content page?
    thanks,
    Bret

    Hi Arnaud,
    Don't recall that we ever investigated a threshold value where portal was not performing anymore. It also depends on other circumstances as well :
    - what kind of caching is used on the page, i.e. pages cached on system level for a period of 24 hours will generally perform well, even if they have a large number of file items. The performance penalty is paid by the person who needs to generate the page from the back-end database.
    - Are all files in a single region or are they divided over several regions. I seem to recall that we use a fetcher thread for each region.
    My advice :
    Built a prototype, add file items to a page and start load tests. This will allow you to determine how many files can be added to a page without an unacceptable loss of performance.
    Regards,
    Erik

  • Simple file to file transfer.  Pls advice urgent

    Hi All,
    I have Simple file to file transfer.
    There are text files at source side that need to send at receiver side.
    Source text files name are different so I have used
    Adapter Specific Attributes for Sender and Receiver Adapetrs
    Question
    As these are text files and there is no mapping required what interface name should I give at Sender Aggrement and
    at Interface Determination.
    Pls describe steps
    Regards

    Rider,
    Its very simple scenario. For ur satisfaction I did the same, it's working perfectly. I don't know what mistake u did. Let me give the complete picture.
    Step1: Create new Scenario
    Step2: Create new Business Service, let say File_BusService
    Step3: In File_BusService add the outbound and Inbound Interface name and namespaces , like
    Outbound Interface: MyInterface
    Outbound Interfacenamespace: http://my-own-namespace.com
    Inbound Interface: MyInterface
    Inbound Interfacenamespace: http://my-own-namespace.com
    Step4: Create two communication Channels under File_BusService
    Step5: Receiver Determination.
    Sender:File_BusService
    Outbound Interface: MyInterface
    Outbound Interfacenamespace: http://my-own-namespace.com
    Configured Receivers
    File_BusService
    Step6: Interface Determination.
    Sender:File_BusService
    Outbound Interface: MyInterface
    Outbound Interfacenamespace: http://my-own-namespace.com
    Inbound Interface: MyInterface
    Step7: Receiver agreement
    Receiver Service: File_BusService
    Inbound Interface: MyInterface
    Receiver Comm.channel
    Step8: Sender Agreement.
    Sender:File_BusService
    Outbound Interface: MyInterface
    Outbound Interfacenamespace: http://my-own-namespace.com
    Sender Comm.channel.
    raj.

  • CPS Simple File Deployer corrupts XLSX and DOCX files when copying to server. Solutions?

    When Contribute Publishing Service Simple File Deployment copies XLSX and DOCX files from our staging server to the live production web server, it is corrupting them.  The resulting file on the live web server is a few bytes different in size.  I published a 9015-byte docx file to our staging server using Dreamweaver (or Contribute).  The resulting file on the staging server opens correctly and remains 9015 bytes.  Then, using CPS Simple File Deployer, I deployed the file from our staging server to our live web server.  The resulting file on the live web server is 9017 bytes, and it won't open.  Something similar happens with XLSX files.  It works fine with XLS, DOC, Html etc.  Well, there is an issue with dependent files unless I synchronize with Dreamweaver, but that's another story.
    Once File Deployer has corrupted the files, opening them brings a message, such as "Excel has found unreadable content in filename.xlsx. . . ".  With Word, it says "The Office Open XML file filename.docx cannot be opened because there are problems with the contents . . . The file is corrupt and cannot be opened."  Sometimes the docx files can be recovered, but that doesn't help. 
    When I take the same original docx file and put it on the web server with an FTP program, it remains 9015 bytes and opens successfully on the live web server.
    For several reasons, such as many users updating the website with Adobe Contribute and not let them use FTP directly to the live server, we need to keep the staging server and use File Deployer (or something) to deploy the changed files from the staging server to the live website.
    I read somewhere that the programming code the uploads files can have problems and fail to work properly with Office 2007 files.  I don't have access to CPS's core.ctc and deployfile.cfc files, and I don't have Cold Fusion. 
    Any suggestions?
    Dean

    Try: 
    Open My Computer.
    Open the Tools menu and choose Folder Options...
    Select the File Types tab.
    Select the extension (for example DOC, or XLS) of the file that is slow to open.
    In the Details section, click [Advanced], and another dialog box will open. 
    In the Actions section, click Open then click [Edit...], and another dialog box will open.
    http://windowssecrets.com/forums/showthread.php/149672-10-9-2012-Updates-and-very-slow-opening-of-Office-files
    KR

  • [SOLVED]Simple file transfer between different os'es

    Hi
    I'm searching for some kind of simple file transfer between different computers/os (mainly arch and windows) on local net, without I have to set up any samba/ftp server etc. It would be perfect if i could select a file I want to transfer and then be able to receive it on a different computer.
    So far I've tried giver but I most of the times they can't find each other.
    Any know how I could archive something like the a bow?
    Thanks
    Last edited by zann (2012-12-07 01:43:44)

    Try using simple file sharing through http server 'oneliner's.
    - Note your host IP (which I refer to by "ip.of.your.server"),
    - Go under your directory where you want to share files and fire a command line :
    Using python : python2 -m SimpleHTTPServer 8000
    And you can access your files on the network using http://ip.of.your.server:8000/
    Using php : php -S localhost:8080 -t webrootpath/
    Files under webrootpath/ will be accessible from http://ip.of.your.server:8888/
    Using mongoose : mongoose -r . -p 8888
    Files will be accessible from http://ip.of.your.server:8888/
    You may restrict access, ie.:  -l -0.0.0.0/0,+10.60.100.105
    And have access/error logging (à la apache) too : -a access_log.txt -e error_log.txt
    NB.: You may install python or php under windows but mongoose is the easiest thing when it comes to windows -> linux.
    Last edited by xpixelz (2012-12-04 15:01:40)

  • Simple file loader with cffile

    Hello;
    I'm trying to make a basic file loader for my web site. I've written the file upload, and it works. I'll attach that code. I was wondering if someone could help me over this small hurdle I need to get past... let me explain.
    I have an admin section in my web site. This file loader is to add new thumbnail images to a db record and show it on the front end. There is an option to either edit and existing record, or add a new record.
    When you get to the editor, I'm putting in a link for a pop up window that has this file loader in it. What I want to do it after you load this file, I need it to be able to close the window and add it to the editor section so the file name can be loaded into the database.
    Is this possible and kind of simple? I realize nothing is too simple doing this kind of programming, I'm just trying to find a decent solution that works. Maybe there is a tutorial out there for this kind of thing? Or maybe someone can help me with a couple lines of code so I can take it from there?
    This is my file loader:
    <cfset UploadFolder="c:\Inetpub\wwwroot\website\img\babies">
    <cfif IsDefined("Form.UploadFile") AND Form.UploadFile NEQ "">
    <cffile
         action="upload"
            filefield="UploadFile"
            destination="#UploadFolder#"
            nameconflict="overwrite"
            >
    File uploaded successfully!
        <br />
        Uploaded file: <cfoutput>#cffile.ClientFile#</cfoutput>
    <cfelse>
    Select a file first!       
    </cfif>
    <form name="UploadForm" method="post" enctype="multipart/form-data" action="">
    <input type="file" name="UploadFile">
        <input type="submit"  name="submit" value="Upload"/>
    </form>
    I can also post the db code for the page I'm loading it into if need be. I would have to refresh the page I believe to get the info from the pop up to the parent window that spawned it. I have a script for that:
    <a href="javascript:opener.top.location=('/test/edit-record.cfm');" onclick= "javascript:window.close();">close window</a>
    can anyone help me make this work properly? OR point me in a direction of a tutorial for a simple file loader of this type?
    thank you.

    I was wondering if Ajax would be a good solution. Can you tell me this
    ? I have a file loader I use all the time, but on this server, it's not working properly. Can you look at my code and possibly tell me why? I
    know this is a lot of code I'm pasting, but it is pretty strait forward. It doesn't thrown an error, it just doesn't load the file
    at all.
    I would rather use this, I have it all written:
    <!--- form submitted --->
    <!--- set file uploading vars --->
    <cfparam name="fileuploaded" type="boolean" default="false">
    <cfparam name="uploadedfile" default="">
    <cfset pathToFile = "c:\Inetpub\wwwroot\website\img\babies">
    <!--- --->
    <cfif len(trim(form.MYFile))>
    <!--- if a file has been selected --->
    <!--- try uploading new file --->
    <cftry>
    <cffile Action="upload" filefield="MYFile" accept="image/gif,
    image/jpg, image/jpeg, image/pjpeg"
    destination="#pathToFile#" nameconflict="MAKEUNIQUE">
    <cfset fileuploaded = true>
    <cfset uploadedfile = cffile.serverfile>
    <cfcatch type="any">
    <!--- if upload did not suceed, reset file uploading vars --->
    <cfset fileuploaded = false>
    <cfset uploadedfile = "">
    <!--- this can be further enhanced by setting some var to hold error
    message and return it to user --->
    </cfcatch>
    </cftry>
    </cfif>
    <cfif form.id gt 0><!--- we are updating an existing record --->
    <!--- if new file upload was successful and the feature has an image
    associated with it - delete old image --->
    <cfif fileuploaded is true AND len(trim(form.oldimage))>
    <cfif FileExists(pathToFile & form.oldimage)>
    <cffile action="delete" file="#pathToFile & form.oldimage#">
    </cfif>
    </cfif>
    <cfquery datasource="#APPLICATION.dataSource#">
    UPDATE baby_port
    SET
    baby_port.dob=<cfqueryparam cfsqltype="CF_SQL_DATE" value="#form.edit1#">,
    baby_port.Fname=<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.Name#">,
    baby_port.Lname=<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.Lname#">,
    <cfif fileuploaded is true>
    baby_port.MYFile=<cfqueryparam cfsqltype="cf_sql_varchar" value="#uploadedfile#">,
    </cfif>
    baby_port.Body=<cfqueryparam cfsqltype="cf_sql_longvarchar" value="#form.PDSeditor#">,
    baby_port.weight=<cfqueryparam cfsqltype="cf_sql_varchar" value="#form.weight#">,
    baby_port.TimeB=<cfqueryparam cfsqltype="CF_SQL_TIME" value="#form.tob#">
    WHERE ID = <cfqueryparam value="#form.ID#" cfsqlType="CF_SQL_INTEGER">
    </cfquery>
    <cfelse><!--- we are inserting a new record --->
    <cfquery datasource="#APPLICATION.dataSource#">
    INSERT INTO baby_port
    (dob, Fname, Lname, MYFile, Body, weight, TimeB)
    VALUES
    (<cfqueryparam cfsqltype="CF_SQL_DATE" value="#form.edit1#">,
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.Name#">,
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.Lname#">,
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#uploadedfile#" null="#NOT fileuploaded#">,
    <cfqueryparam cfsqltype="cf_sql_longvarchar" value="#form.PDSeditor#">,
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.weight#">,
    <cfqueryparam cfsqltype="CF_SQL_TIME" value="#form.tob#">)
    </cfquery>
    </cfif>
    this is the 2 fields on the form that is submitting the file:
    <input type="hidden" name="oldimage" value="#MYFile#">
    <input name="MYFile" type="file" id="MYFile">
    I can make more available if you need it, I didn't want to unload a ton of code on you.This is a stand alone server running coldfusion 8.1 standard if that makes a difference, it is not a shared environment. I have this code working on shared environments.

Maybe you are looking for

  • Delete SO after deleing PO line item in Individual Purchase order

    "Individual Purchase order" if i create SO with individual PO then PR is created automatically and i convert this PR to PO if i want to delete So line item i can't because it's linked to PO. I deleted this PO line item and i tried again to delete SO

  • Difference between Shared Variable Refnum and Control

    Dabbing my toes in Shared Variables for another project.  Glad to see A LOT more support from NI in terms of Shared Variables (especially now that built executables can be set to automatically deploy shared variable libraries...thats a big help). In

  • Vf01 issue

    Dear experts,      When I try to create billing doc. in  T_code VF01(Create Billing Document) by giving the document no, i am getting the error message "No billing document were generated.see log".   In log file two error message is displayed. 1.The

  • How do I get groups on my ipad2 if there not showing

    How do I get groups on my ipad2 if there not showing

  • Dates Drop Down List

    I have a table which stores a list of valid dates. These dates are then foreign keyed to another table date column I have a VO which selects a date field. In the attribute I have set it as Simpale Date and specified dd-MMM-yyy format. The default dat