User file upload within OBI

Hi,
Is it possible to enable users to upload files within their OBI environment through a buildin OBI application/service? The file would then be uploaded to a destination on the server on which it is running.
Currently we are using an ASP.NET Server Page run by IIS, which is loaded as embedded content within an OBI Dashboard.
This demands a login to the server, while i would prefer they could upload by only using there OBI user loginname.
I realize there are beautifull SSO architectures to put up for this, but im really looking for something simple for the moment.
Thank you.

Hi,
Is it possible to enable users to upload files within their OBI environment through a buildin OBI application/service? The file would then be uploaded to a destination on the server on which it is running.
Currently we are using an ASP.NET Server Page run by IIS, which is loaded as embedded content within an OBI Dashboard.
This demands a login to the server, while i would prefer they could upload by only using there OBI user loginname.
I realize there are beautifull SSO architectures to put up for this, but im really looking for something simple for the moment.
Thank you.

Similar Messages

  • Threading problem during File Upload with Apache faces upload tag

    First I am going to tell you "My Understanding of how JSF Apache Upload works, Correct me if i am wrong".
    1) Restores View (to show Input box and Browse button to facilitate users to select a file for upload)
    2) Translates Request Parameters to Component Values (Creates equivalent components to update them with request values).
    3) Validates Input(Checks to see whether the User has input the correct file)
    4) Updates Backing Bean or Model to reflect the values.
    5) Renders response to user.
    I am uploading huge files of sizes 400MB and above with the help of JSF apache extensions tag
    <h:form id="uploadForm" enctype="multipart/form-data">
    <x:inputFileUpload style="height:20px;" id="upload" value="#{backingbean.fileContents}" storage="file" size="50" />
    </h:form>
    In the backing bean
    private UploadedFile fileContents;
         public UploadedFile getFileContents() {
              return fileContents;
         public void setFileContents(UploadedFile fileContents) {
              System.out.println("File being uploaded...");
              this.fileContents = fileContents;
    Since, the file size is so huge, I am using temp folder to use for the apache tag instead of memory.
    In web.xml i am using like this
    <filter>
    <filter-name>ExtensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
    <init-param>
    <param-name>uploadMaxFileSize</param-name>
    <param-value>600m</param-value>
    </init-param>
    <init-param>
    <param-name>uploadThresholdSize</param-name>
    <param-value>10m</param-value>
    </init-param>
         <init-param>
    <param-name>uploadRepositoryPath</param-name>
    <param-value>/uploadfolder/</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>ExtensionsFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    The upload process is working perfectly fine.
    Now coming to the problem:
    Suppose one user is logging into the application & uploading say 400MB of files.
    Until these files are linked to the model objects as my understanding of step 2, if second user tries to open the application he gets stuck with the loading page.
    The page gets loaded only after the request files are linked to the component values(Step 2 above) and updates the backing bean's values.
    I don't see any error in the logs. User is getting stuck. The user is getting stuck only when uploading the files. The other operations like searching are not blocking any other activities performed by the user.
    Server used: IBM Application Server V6.0. CPU is normal, memory usage is normal.

    Dear friend,
    i am also trying to upload using the common file upload.
    when try to run the file error is coming
    can give some suggestion.
    can i use if concurrent user file upload at a time

  • Yahoo BrowserPlus file upload

    Hi,
    I'd like to offer my users file uploads via the groovy new Yahoo BrowserPlus.
    The BrowserPlus API call takes a URL parameter, documented as:
    "The url to POST the file to. Can be relative to invoking URL, e.g. if service is invoked from http://www.foo.com/uploader/index.html and url argument is upload.php, the final url will be http://www.foo.com/uploader/upload.php"
    Can anyone tell me what the parameter should be set to in order to upload files to WWV_FLOW_FILES?
    Thanks
    jd

    JD,
    If you haven't already, install the Firebug plugin for Firefox. Create an APEX page uploads a file. Open Firebug > Net tab > upload your file. You can see exactly what URL and parameters it's posting to (either wwv_flow.show or wwv_flow.accept). Understand that you will probably need at the very least the following parameters in addition to your file:
    - p_flow_id (the app number)
    - p_flow_step_id (the page number)
    - p_instance (the session ID
    - p_request (probably optional, but you might want to set it)
    You can extract them from any page via JavaScript:
    console.log('The App ID is: '+$v('pFlowId'));
    I went through this exercise writing my [jApex jQuery plugin|http://tylermuth.wordpress.com/2009/08/19/japex-a-jquery-plugin-for-apex/] and it's a good learning experience.
    I looked at the Yahoo BrowserPlus plugin the other day and it seems interesting. I'm curious to see what the uptake will be, as it's pretty new. Let us know how it goes as this would be a great howto for the APEX community.
    Tyler Muth
    http://tylermuth.wordpress.com
    [Applied Oracle Security: Developing Secure Database and Middleware Environments|http://www.amazon.com/gp/product/0071613706?ie=UTF8&tag=tylsblo-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0071613706]

  • How to restrict users from uploading malicious files(exe, dll,etc) & limit file size in a webform

    Hello, please i have a file atachment field in a form on my site. I want to restrict the size of the file that can be uploaded and the type. It's a vacancy page and I want candidates to only upload doc and pdf files. I want to also limit the file size to 50mb only. How can this be done within the BC system.
    Thanks.

    The file extension can't be trusted, like the mime-type it can be faked by a malicious user. Also this method can just be avoided altogether by anyone who has javacript turned off. Using javascript for this is not even remotely secure.
    Isn't there a way to allow file uploading but specify a whitelist of filetypes (preferably checked using byte headers or some effective method) somewhere in admin?
    Liam Dilley wrote:
    Hey there,
    You can do the file extension with jquery for example. The basic aspect of that is:
    var ext = $('#my_file_field').val().split('.').pop().toLowerCase();
    if($.inArray(ext, ['exe','dll','jpg','jpeg']) == -1) {
        alert('invalid extension!');
    So what is hapepning there is that it checks the value of the field when someone has added the file and checks the file extensiona and produces an alert but you can do as you need.
    You could run this on hover of the submit button, on change of the actual file attachement field or on click of the submit button in the checks before it submits.
    BC limits files to 100mb anyway so you should be ok on that front, they wont be able to be crazy uploading.

  • File upload from form using cf8 file functions within cfscript?

    essentially, i'm wondering if anyone can give me an example
    of a way to replicate cffile upload using cf8's native file
    manipulation functions within a cfscript tag?
    more specifically, i am wondering if anyone had any code
    examples for uploading a file specified by a user on an html form
    using cf8's file functions (fileOpen, fileCopy, fileDelete,
    fileMove, fileClose, etc....) within a cfscript tag. i've done this
    a number of times in the past using upload through cffile, but i'd
    like to take advantage of cf8's new native file functions and be
    able to deploy the code within a cfscript block.
    i've found some simple examples of the file functions within
    the docs and online, but nothing showing me how to take a file from
    an html form and upload it where i want it, as cffile will do.
    thanks in advance for any help.

    those cf8 file functions are for manipulating files on the
    server.
    you still need to upload the file in one way or another.
    as for replicating cffile action=upload in cfscript: just
    write a
    function that uses cffile tag to upload a file, and call that
    function
    from your cfscript!
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • How do I allow users to upload personal files through website?

    How do I allow users to upload personal files through our website?
    I am trying to allow the visitors the ability to upload images for a future contest we will be hosting. I am trying to build a submit form with personal fields (already got this done) along with a field they can upload 1 or 2 images. I want the form to send me an email with details along with image files. I have a BC webbasic+ account and I am using Muse for my web editing.
    Can someone point me in the right direction?

    Hi,
    You could apply a "file attachment" field within the web form.  If needing more than 1 file attachment you'll need to access your form code and hard-code the additional field. 
    The form will collect the file(s) and will be held within the case details under "related files".  You can also assign a workflow to recieve notifications however only 1 file will appear in each email.  To see the other files you'll need to access your order details. 
    All this can be create and managed within your site's admin.  yoursite.com/admin 
    Within the site admin...
    http://helpx.adobe.com/content/help/en/business-catalyst/using/create-insert-form.html (Creation of webform, etc)
    http://helpx.adobe.com/content/help/en/business-catalyst/sbo/customer-database.html#id_227 59 (Manage customer web form submissions)
    Hope this helps!
    -Sidney

  • Get the root folder name once user will upload any files to subfolder with in this root folder using sharepoint designer WF??

    Hi,
    How to get the root folder name using sharepoint designer WF? i have a document library with root folders and subfolders. so i am trying to get the root specific root folder name attaching with email once user will
    upload any files to subfolders within that root folder.
    Thanks in advanced!

    Hi,
    According to your description, you might want to get the root folder name in SharePoint Designer Workflow when there is file uploading.
    The “Path” field of the current item holds the relative path of a file, as a workaround, you can retrieve the value of the “Path” as string, then split the string
    value with a delimiter character of “/” to meet your requirement.
    In SharePoint Designer 2010, there is no OOTB action to split the string. You can use the custom workflow actions below to achieve it.
    Here is a link about the related actions I use in this scenario:
    https://spdwfstringactions.codeplex.com/
    Settings of workflow as below:
    It works well in my environment:
    Best regards
    Patrick Liang
    TechNet Community Support

  • Wss3 Issues with user check in files from within excel or word 2010

    I have got a user reporting that he is experiencing (and it is getting more and more often) that when a file is checked out in excel or word, he then edit it, followed by clicking check in on the File tab within either excel or word. He then gets error see
    image below.
    Just wonder if anyone has seen this before? and where do I start...?
    i have checked the site collection is about 12 GB in size, there are quite a few subsites in the area where this user is working, there are about 150 subsites, 3 levels... our wss3 version is 12.0.0.4621

    Yesterday I just had another user report the similar issue with with office complaining that the file was not checked out therefor upload (check-in) was failed.
    Please see the version and build number of MS Office
    Forgot to say, we are all on the same release and updates for MS Office as well as IE.

  • How to allow users to upload a flat file to BW

    Hi All,
    For a planning application I would like to permit our users to upload a flat file on their local desktop to the infopackage and execute the load.
    We would like to empower the users to prepare and upload their flat files into BW from their desktop without asking for BW support.
    Please let me know if any of you have followed this approach.
    Thanks
    Karen

    Hi,
    The possible steps..
    1. Create a small program and then give
    Selection Screen:
    FIle name : -
    Note: Ask users give always same file name i.e. xyz.csv
    Once user will give file name and execute it then file will save in Application Server (You fix the path like  /usr/sap/BI1/DVEBMGS00/work, you create seperate folder in Application server)
    2. Create a small Program with is using Events..
    REPORT  ZTEST_EV.
    DATA: EVENTID LIKE TBTCJOB-EVENTID.
    DATA: EVENTPARM LIKE TBTCJOB-EVENTPARM.
          EVENTID = 'ZEVENT1'.
          EVENTPARM = 'ZEVENTPARAM'.
    CALL FUNCTION 'RSSM_EVENT_RAISE'
              EXPORTING
                I_EVENTID                         = EVENTID
                I_EVENTPARM                  = EVENTPARM
              EXCEPTIONS
               BAD_EVENTID                            = 1
               EVENTID_DOES_NOT_EXIST       = 2
               EVENTID_MISSING                     = 3
               RAISE_FAILED                           = 4
               OTHERS                                    = 5
            IF SY-SUBRC <> 0.
                     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
    3. Once user will upload the file in Step 1, then he need to run this Program,.
    4. You craetea Process Chain using this Event, then once User will run this program then the Data Loads will happen through Process Chain.
    Note: Eventhough this is lengthy process, it is protected 100%, because we are not giving any access to User, we just given reports/programs to execute.
    Thanks
    Reddy
    Thanks
    Reddy

  • How to allow the user to upload a file from their desktop to MII Server?

    Hi,
    Is there a way for the user to specify a file on their local computer to upload to the MII server for processing?  We have a method that works for uploading from a shared network drive, but now the need/desire is to allow the user to upload a file from their desktop.
    Ideally, this would be a file browser that the user would click on to browse their local desktop and select the file and click "Upload" but not sure what's possible?
    This is using 12.1 SP4.
    Thanks for the help.
    Kerby

    [Uploading Documents|Uploading Documents]

  • File upload....How to find the user entered any file or not

    Hi Team,
    I am working on with file upload UI.
    Some times without clicking on browse button, I mean without entering any file they are cliking on upload button, which is giving the exception.
    I know there is no action for UI element, Then how to resolve this?
    I just control the user, not to press the upload button without entering any file name there?
    How to resolve this?
    regards,
    Bala

    Hi,
    This code will solve ur problem.
    public void onActionUploadFile(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionUploadFile(ServerEvent)
        IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(IPrivateFileUploadDownloadView.IContextElement.FILE_RESOURCE);
        IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType)attributeInfo.getModifiableSimpleType();
        IPrivateFileUploadDownloadView.IContextElement element = wdContext.currentContextElement();
        if(element.getFileResource() !=null)
             try
                  String mimeType = binaryType.getMimeType().toString();
                  byte[] file = element.getFileResource();
                  //element.s
                  wdComponentAPI.getMessageManager().reportMessage(IMessageFileUploadDownloadComp.SF__UPLOAD,new Object[] {binaryType.getFileName()},false);
             catch(Exception e)
                  throw new WDRuntimeException(e);
        else
              wdComponentAPI.getMessageManager().reportMessage(IMessageFileUploadDownloadComp.NO__FILE,new Object[] {" "},true);
        //@@end
    Here "fileresource" is context attribute name
    Regards,
    Sunaina Reddy T

  • Screen hangs when user types in some text in file upload component

    Dear All
    I am using file upload component in webdynpro java in a custom application and added some validation logic on the file
    selected. This is being used to upload jpeg files to KM repository. Now the issue is if user types some text in the file
    upload input field and click on upload button the screen hangs and it goes to infinite loop. It seems that the framework is not able to accept and check the arbitrary value entered by user.
    Can anyone tell me how this can be sorted out?
    Thanks
    Sudip

    Hello Sudeep,
    I have also faced the same issue and to me it seems an issue with the UI element itself. Please follow the following threads for more information:
    [http://help.sap.com/saphelp_nw04s/helpdata/en/b3/be7941601b1d09e10000000a155106/frameset.htm]
    and
    [File Upload UI Element going in Infinite loop;
    [upload UI element;
    Hope this may be of some use.
    Regards,
    Gaurav

  • How To guide...for Flat File upload for User-Defined variables

    Has anyone got link to the guide that describes how to do a flat file upload for populating User-Defined Variables ?
    Any assistance will be appreciated.
    Uche

    SAP BW Business Planning and Simulation "How To" Guides
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ab9fd590-0201-0010-2590-be78eb70015c
    How to Upload User-Specific Variable Selections in BW-BPS
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to upload user-specific variable selections in bw-bps.pdf
    this is what you are looking for ?
    Message was edited by: Murali

  • File Upload and Download based on user login

    I have a feature wherein the application user can upload a file. I had initially created this using the straightforward process suggested in the Apex tutorial, using the APEX_APPLICATION_FILES view. However, now, I need to have a feature where I have to display only the files that are uploaded by the user that is logged in, and provide a link to download those files. The "created_by" field stores the username of the Oracle user, who is not the same as the application user.
    Can someone suggest me the steps to implement this?

    Hi GauriT,
    I would try something like this:
    1) Create a table FILE, say:
    Name            Type
    NAME           VARCHAR2(4000)
    DESCRIPTION    VARCHAR2(4000)
    OWNER          VARCHAR2(100)
    ID             NUMBER(38)
    BLOB_CONTENT   BLOB
    MIME_TYPE      VARCHAR2(4000)2) Create a page process to call with a button:
    BEGIN
    IF ( :P1_FILE_NAME IS NOT NULL ) THEN
         INSERT INTO FILE(id, name, description, owner, blob_content, mime_type)
              SELECT ID, :P1_FILE_NAME, :P1_DESCRIPTION, v('APP_USER'), blob_content, mime_type
              FROM APEX_APPLICATION_FILES
              WHERE name = :P1_FILE_NAME;
         DELETE FROM APEX_APPLICATION_FILES WHERE name = :P1_FILE_NAME;
    END IF;
    END;- :P1_FILE_NAME is a file browse item
    - :P1_DESCRIPTION is a text field
    - v('APP_USER') returns the logged in user
    3) With this table FILE you certainly can figure out something to display only the files that are uploaded by the user that is logged in. Eg:
    SELECT name
    FROM FILE
    WHERE owner = v('APP_USER');Hope this gives an idea,
    Roger

  • File upload sendmail not displaying user input

    Hello ive set up the upload example from     http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Images_01.html
    i added a textarea field and a sendmail function.  all is working well but the email does not contain any of the data from the fields on the form that the user submits. its just white space where that data should be.....Could someone please check this code and see what i am doing wrong ...thanks, kevin
    ---------------------------Here is the form page:---------------------------------
    <cfparam name="FORM.image" default="" />
    <cfparam name="FORM.comments" default="" />
    <!--- Create an empty error string --->
    <cfset strError = "">
    <!--- This code creates a form with one field where the user enters the image file to upload. --->
    <cfform action="makeThumbnail.cfm" method="post" enctype="multipart/form-data">
    <p>Please upload an image:
      <cfinput type="file" name="image" required="yes" id="image" value="#Trim(FORM.image)#" message="Please enter an image!">
    </p>
    <p>
      <cftextarea name="Comments" cols="20" rows="4" required="yes" id="Comments" message="Please enter your Comments!" enabled="no" value="#Trim(FORM.comments)#" maxlenght="160" visable="no" />  </p>
    <p>
      <cfinput type="submit" value="Send Image" name="Submit">
    </p>
    <cfif IsDefined( "FORM.image" )>
    <cfif IsDefined( "FORM.comments" )>
    <cfmail
    from="[email protected]"
    to="[email protected]"
    subject="Visitor Email."
    server="outgoing server"
    username="usernam"
    password="pass">
                    File uploaded.
       <cfoutput> image: #Trim(FORM.image)#, comments: #Trim(FORM.comments)#, #Now()#</cfoutput>
    </cfmail>
        </cfif>
      </cfif>
    </cfform>
    -----------this is the makethumbnail.cfm which i made no changes ---------------------
    <cfset thisDir = expandPath(".")>
    <!--- Determine whether the form is uploaded with the image. --->
    <cfif structKeyExists(form,"image") and len(trim(form.image))>
        <!--- Use the cffile tag to upload the image file. --->
        <cffile action="upload" fileField="image" destination="#thisDir#" result="fileUpload"
            nameconflict="overwrite">
        <!--- Determine whether the image file is saved. --->
        <cfif fileUpload.fileWasSaved>
        <!--- Determine whether the saved file is a valid image file. --->
            <cfif IsImageFile("#fileUpload.serverfile#")>
        <!--- Read the image file into a variable called myImage. --->
                <cfimage action="read" source="#fileUpload.serverfile#" name="myImage">
                <!--- Determine whether the image file exceeds the size limits. --->
                <cfif ImageGetHeight(myImage) gt 480 or ImageGetWidth(myImage) gt 360>
                    <!--- If the file is too large, delete it from the server. --->
                    <cffile action="delete"
                        file="#fileUpload.serverDirectory#/#fileUpload.serverFile#">
                    <cfoutput>
                    <p>
                    The image you uploaded was too large. It must be less than 480 pixels wide
                        and 360 pixels high. Your image was #imageGetWidth(myImage)# pixels wide
                        and #imageGetHeight(myImage)# pixels high.
                    </p>
                    </cfoutput>
                    <!--- If the image is valid and does not exceed the size limits,
                        create a thumbnail image from the source file that is 75-pixels
                        square, while maintaining the aspect ratio of the source image.
                        Use the bilinear interpolation method to improve performance.
                        --->
                <cfelse>
        <cfset ImageScaleToFit(myImage,100,100,"bilinear")>
                    <!--- Specify the new filename as the source filename with
                        "_thumbnail" appended to it. --->
                    <cfset newImageName = fileUpload.serverDirectory & "/" &
                        fileUpload.serverFilename & "_thumbnail." &
                        fileUpload.serverFileExt>
                    <!--- Save the thumbnail image to a file with the new filename. --->
                    <cfimage source="#myImage#" action="write"
                        destination="#newImageName#" overwrite="yes">
                    <cfoutput>
                    <p>
                    Thank you for uploading the image. We have created a thumbnail for
                        your picture.
                    </p>
                    <p>
                    <!--- Display the thumbnail image. --->
                    <img src="#getFileFromPath(newImageName)#">
                    </p>
                    </cfoutput>   
                </cfif>
            <!--- If it is not a valid image file, delete it from the server. --->
            <cfelse>
                <cffile action="delete"
                    file="#fileUpload.serverDirectory#/#fileUpload.serverFile#">
                <cfoutput>
                <p>
                The file you uploaded, #fileUpload.clientFile#, was not a valid image.
                </p>
                </cfoutput>
            </cfif>
        </cfif>
    </cfif>

    Hello ive set up the upload example from     http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Images_01.html
    i added a textarea field and a sendmail function.  all is working well but the email does not contain any of the data from the fields on the form that the user submits. its just white space where that data should be.....Could someone please check this code and see what i am doing wrong ...thanks, kevin
    ---------------------------Here is the form page:---------------------------------
    <cfparam name="FORM.image" default="" />
    <cfparam name="FORM.comments" default="" />
    <!--- Create an empty error string --->
    <cfset strError = "">
    <!--- This code creates a form with one field where the user enters the image file to upload. --->
    <cfform action="makeThumbnail.cfm" method="post" enctype="multipart/form-data">
    <p>Please upload an image:
      <cfinput type="file" name="image" required="yes" id="image" value="#Trim(FORM.image)#" message="Please enter an image!">
    </p>
    <p>
      <cftextarea name="Comments" cols="20" rows="4" required="yes" id="Comments" message="Please enter your Comments!" enabled="no" value="#Trim(FORM.comments)#" maxlenght="160" visable="no" />  </p>
    <p>
      <cfinput type="submit" value="Send Image" name="Submit">
    </p>
    <cfif IsDefined( "FORM.image" )>
    <cfif IsDefined( "FORM.comments" )>
    <cfmail
    from="[email protected]"
    to="[email protected]"
    subject="Visitor Email."
    server="outgoing server"
    username="usernam"
    password="pass">
                    File uploaded.
       <cfoutput> image: #Trim(FORM.image)#, comments: #Trim(FORM.comments)#, #Now()#</cfoutput>
    </cfmail>
        </cfif>
      </cfif>
    </cfform>
    -----------this is the makethumbnail.cfm which i made no changes ---------------------
    <cfset thisDir = expandPath(".")>
    <!--- Determine whether the form is uploaded with the image. --->
    <cfif structKeyExists(form,"image") and len(trim(form.image))>
        <!--- Use the cffile tag to upload the image file. --->
        <cffile action="upload" fileField="image" destination="#thisDir#" result="fileUpload"
            nameconflict="overwrite">
        <!--- Determine whether the image file is saved. --->
        <cfif fileUpload.fileWasSaved>
        <!--- Determine whether the saved file is a valid image file. --->
            <cfif IsImageFile("#fileUpload.serverfile#")>
        <!--- Read the image file into a variable called myImage. --->
                <cfimage action="read" source="#fileUpload.serverfile#" name="myImage">
                <!--- Determine whether the image file exceeds the size limits. --->
                <cfif ImageGetHeight(myImage) gt 480 or ImageGetWidth(myImage) gt 360>
                    <!--- If the file is too large, delete it from the server. --->
                    <cffile action="delete"
                        file="#fileUpload.serverDirectory#/#fileUpload.serverFile#">
                    <cfoutput>
                    <p>
                    The image you uploaded was too large. It must be less than 480 pixels wide
                        and 360 pixels high. Your image was #imageGetWidth(myImage)# pixels wide
                        and #imageGetHeight(myImage)# pixels high.
                    </p>
                    </cfoutput>
                    <!--- If the image is valid and does not exceed the size limits,
                        create a thumbnail image from the source file that is 75-pixels
                        square, while maintaining the aspect ratio of the source image.
                        Use the bilinear interpolation method to improve performance.
                        --->
                <cfelse>
        <cfset ImageScaleToFit(myImage,100,100,"bilinear")>
                    <!--- Specify the new filename as the source filename with
                        "_thumbnail" appended to it. --->
                    <cfset newImageName = fileUpload.serverDirectory & "/" &
                        fileUpload.serverFilename & "_thumbnail." &
                        fileUpload.serverFileExt>
                    <!--- Save the thumbnail image to a file with the new filename. --->
                    <cfimage source="#myImage#" action="write"
                        destination="#newImageName#" overwrite="yes">
                    <cfoutput>
                    <p>
                    Thank you for uploading the image. We have created a thumbnail for
                        your picture.
                    </p>
                    <p>
                    <!--- Display the thumbnail image. --->
                    <img src="#getFileFromPath(newImageName)#">
                    </p>
                    </cfoutput>   
                </cfif>
            <!--- If it is not a valid image file, delete it from the server. --->
            <cfelse>
                <cffile action="delete"
                    file="#fileUpload.serverDirectory#/#fileUpload.serverFile#">
                <cfoutput>
                <p>
                The file you uploaded, #fileUpload.clientFile#, was not a valid image.
                </p>
                </cfoutput>
            </cfif>
        </cfif>
    </cfif>

Maybe you are looking for

  • Hi i wrote a java program for scanning a system for java.exe 's

    hi , i wrote a program which scans the system for java.exe 's and then it captures them in a linked list and then i iterate through it for "\\Java\\jdk1.5.0_08\\bin\\java.exe and my aim is to return true in case the linked list contains the string "\

  • F-28 Automatically created item modification

    Hi, our users are posting incoming payments(F-28) and they need to modify the payment method on the detail screen of the item automatically generated. The problem is that in automatically items, only assignment and text fields can be modified. Is the

  • OS X tiger has been installed and I wanted OS 9 Classic I installed but...

    When I installed the OS 9 to run in classic the system folder can not be found and I have installed it. I see it but it won't launch. any help would be appreciated

  • Truncate always checked for the some of the dimension tables

    Hi, I found common dimension tables across Finance,Supply Chain and Sales by querying in DAC. In the task level most of the target tables checked as Truncate For Full Load. but some of the tables defined as truncate always, why they defined as trunca

  • Reply order in Mavericks Mail?

    Hi I have a discussion with someone with several replies. Is there any way to view the discussion itself, starting with my original post? i.e. Oldest post first followed by first reply, second reply, etc... My original post goes to the bottom and I h