How to validate File Path given for upload

Hi All,
I am trying to upload a file using the File Upload Control. I have already bound the data and resource property with the context attributes. Can someone please suggest that what can be done to validate the file path? For eg. if i enter "abcd" in the file path and click a button for uploading the file. My application simply "<b>HANGS UP</b>" without even reaching the code what i have written on action of the button.
Is there any way to permit the user to enter the path only through Browse button and not manually? Please reply ASAP.
Thanks and Regards,
Smriti

Hi Smriti,
Have a look on the Following Links... which clearly briefs what is the use of FileUpload UI and how it works behind the screen...
<a href="/people/dagfinn.parnas/blog/2004/08/15/inputfile-how-to-hide-the-plain-browse-button you about the how the FileUplaod UI is being built.</a>
<a href="/people/dagfinn.parnas/blog/2004/08/15/inputfile-how-to-hide-the-plain-browse-button more stuff on FileUpload UI</a>
<a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;892442">How the FileUpload UI interacts with the local system</a>
After going thru above post, you can identify that the inputField is being declared as FILE type (like <input type="file" >), and you would also noticed the cause for your error in the last link which I have specified above, and what microsoft also recommends for it as a solution to show an alternative message in place of the blank screen...
Hope now you would be clear...why your method is not being invoked..
Please revert back for futher queries... try to come soon with an alernative solution...
Regards / Guru
Message was edited by:
        Armin Reichert

Similar Messages

  • How to validate File path

    hi experts,
              how to validate file path, weather given file exists in the given path or not. for both presentation and application server files.
    kindly suggest Function modules
    i am using F4 function module to take input to the file name parameter. if user didn't used those options and directly entered the file path then i have to validate that path.
    regards,
    pavan

    hi all,
      for presentation server path cl_gui_frontend_services=>file_exist is working.
    for application server path
      PFL_CHECK_OS_FILE_EXISTENCE--function module is working fine.
    Thank you all for your quick responses.
    regards,
    pavan

  • How to get File type icon for files store on Amazons3

    Hi,
    i want to know about how to get file type icons for files that we store on Amazons3.i am a devloper ,i want to make gui for accessing amazons3.
    so ,i want to know about how to get file type icons for files that we store on Amazons3.
    thanx in advance.

    hi,
    have u heard amazon simple storage service,that provides storage space for
    storing files, i am a devloper,i want to know the files that we store on amazon,how we can get file type icon for that files.
    i want to sample code in java for this.
    thanx in advance.

  • How to compress file 32+ mb for email attachment

    how to compress file 32+ mb for email attachment, after I used compress it's still shows 29 mb. Is there another step I could do. I am new with MAC so please forgive if this sound simple and stupid question.

    You simply don't attach that file to email.  Even if you could cut the size by half, that's still way too big for email.  Many mail servers will remove attachments over a certain size, and for most of those that size is below 10 MB.  Find another way to share that file, like a web server or Dropbox or something along those lines.

  • HT204088 How do I file a claim for a purchase from iTunes that I did not do?

    How do I file a claim for a purchase from iTunes that I did not do?

    First, log into your iTunes Store account and see if the purchases are reflected in the Purchase History.
    http://support.apple.com/kb/HT2727
    If they are and you're sure you or someone you know didn't make the purchase, perhaps as an in-app purchase, immediately change the password to your iTunes Store account, making sure it's not something easily guessed or looked up. Then go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store. 
    If the charges are not reflected in the Purchase History, then it's most likely a fraudulent charge to your credit card directly rather than an unauthorized purchase through your iTunes Store account and it will be up to your bank to handle.
    Regards.

  • How to write a web service for uploading a file

    Hi all,
    I want to write a web service for uploading a file to some specified folder under application server, how to do that? Thanks

    I believe the "difference" that you're seeing is that one web service is "RPC" style (The Hello World example) and one web service is "Document" style (The WSDL you have downloaded).
    Document-style web service methods always have one element as a parameter, and this parameter manifests itself as a SOAPElement in the service interface.
    RPC-style web services are true "remote procedure calls", and are more functional in nature, in that they accept multiple parameters. JAX-RPC will bind these parameters to generated Java types.

  • How to Print File Path and File Name at the bottom of the Report?

    Hi guys,
    I have situation where i have to display my file path where i save my file. For example: U:\Reports\Monthly_Reports\Compay_xyz.jsp
    also, after the file path line if its possible i would like to display the date where the last modification done on the file.
    I read one of the post and some one suggested that use srw.get_report_name() but since i am a new to Reporting i am not sure how to use it.
    Can anyone describe me little bit in detail please?
    Thank You.

    Hi,
    Your logic seems to be fine and you should put it in the additional plsql code section "After displaying the page". But you may have to check you syntax by compiling it. You cannot use "LINEFEED". It should be '<br>'. This is the line break in html. Please check your type declaration. Also some ';' is missing after some statements.
    Hope that helps.
    Thanks,
    Sharmila

  • How to get file path?

    Hi all,
    I have a tcode ysd_gr. When I execute it, it has one select option & I entered the values as *.csv. It gave 6 csv files(only file names) & I want to retreive data from one file.
    So I need to find the file path. The functional consultants told that the files are in Application server (there are more than 5 application servers are used here).
    So I need to know how to find the file path  and in which application server the file is placed.
    Thanks in advance,
    Vijay.

    Go to t-code AL11 and give the path name excluding the file name:
    I mean for example the name is as below:
    D:\usr\sap\IDS\DVEBMGS00\data\test.csv
    here test.csv is the file name.
    So go to AL11 and give upto D:\usr\sap\IDS\DVEBMGS00\data and dauble click on it and search for the file name.
    Hope this will solve your problem.
    Reward if helpful.
    Thank you.

  • File adapter validate file checking directory for files

    Hi Gurus,
    We have requirement. There are 3 directories (Processing, Error and Archive)in the Source side.SAP PI need to pick up a file called "abc.txt" from the processing tab.
    But there is a condition.
    1. If "abc.txt" file exists in the "Error" directory then Not process the interface.
    2. If there is no "abc.txt" file in the "Error" directory then validate the file "abc.txt" in the "Processing" directory. If the file is not according to the validation rule then move the "abc.txt" file to the "Error" directory and then stop the processing.
    3. if the above two conditions are ok then move the "abc.txt" file to "archive" directory and send the file to PI.
    Please help me to achive this requirement.

    Hi Kevin,
    You need to use the option of "advanced selection for source file" in the source tab of  sender comm. channel.
    chk this link :-
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    hope its of some help
    Regards,
    Rohit

  • Full File path of the uploaded fie in struts

    How do we get full file path from the FileForm component in Struts upload.
    Acutal requirement is that ,
    in the file browser component, the user may select a file or he may paste and external link like http://www.xyz.com/abc/index.html etc..,
    How do we get the value that is in the input in the File Browser component as it is?
    Any help, is highly appreciated.
    Praveen

    I don't have a clue, but I would see that as a security threat if I was a user. I don't want to send local path names to a server.
    /Kaj

  • How to include file path in footer

    I need to add file paths to a pdf I have created.  Does anyone know how?  I know that there are JavaScript ways, but I am not even sure what a Java Script is.
    Thanks for any insight!

    If you do not know how to use JavaScript, there is this option: Custom-made Adobe Scripts: Acrobat/Reader -- Advanced Add Header/Footer Text (but it's not free).

  • How to calculate 25,000 ceiling for uploaded songs

    Can you help me calculate how close I am to hitting the 25,000 ceiling for uploaded songs? 
    I still have more CDs to upload but don't know how to measure what capacity I have left for more songs.
    Here are my stats -
    A.    Under My Music, on the left side, it says
    All artists - 46,762 songs
    Compilations - 733 songs
    Question 1:  Is the total number of iTunes Match songs 46,762 or 47,495 (46,762 + 733)?
    B.  Under Playlists, on the left side, it says
    I have only uploaded music albums so I have songs PLUS digital booklets or a small number of music
    videos that come with the albums. iTunes Match doesn't seem to upload the digital booklets or music videos.
    Purchased (with the circle and arrow symbol beside it) - 25,169
    Purchased AAC audio file - 29,137
    Question 2:  Which of these numbers - 25,169 or 29,137 - represent the number of songs I have purchased, and should then be
    deducted from the number of songs in Question 1?
    Many thanks in advance for any help.

    Hi,
    I suggest that you make two playlists:
    Use iCloud status = purchased
    use iCloud status = matched or uploaded.
    THe he second on will tell you how close you are to the limit.
    Managing iTunes match with over 25k tracks
    Digital booklets and music videos (not purchased from iTunes store) are ineligible for match.
    JIm

  • ECATT - How use external file/new variant for input data

    Good day,
    I want to use an eCATT created by someone else for another request. I want to be able to specify my new input data based on the new request WITHOUT generating a new Transport. Same thing as I'm doing for the CATT ... the CATT is transported but only the input data change depending on the request without generating any transport.
    How I build my new input file and how to use it? I tried to download my variant but the only possible format is XML and it's very hard to build a new file based on my request.
    Thanks for your help.
    Simon

    Hi,
    Can you tell me how you are generating the xml file. My guess is you are downloading the Test Script/ Test Configuration. In that case it creates an xml file.
    As mentioned by Ajay, In Test Configurator / Test Data -  you can create the internal variant first, i.e assuming you have already created parameters.. On the top, you have a download button "Download Variant". This creates a .txt file. You can open the file in excell and edit it.
    For the next test, you can select external variant and give the modified file path name.
    Let me know if this helps.
    Regards
    Phanidhar

  • How to remove file path location listings from photos and objects in Acrobat Pro 9.0 PDF?

    After converting a windows-based Powerpoint 2007 presentation to an Acrobat Pro 9.0 PDF, the file path location of all photos and objects are shown in a dialogue box when the cursor is moved over the image as seen in this screenshot below. How can I stop this from happening and remove this feature on my pdf documents? 

    I saw that referenced on a forum, but it does not seem to address the issue I am having.
    As per Adobe Acrobat X Standard * What’s new, the equivalent to the "Tools > Protection > Remove Hidden Information" utility found in Acrobat X Standard is the same as the "Document > Examine Document" feature in Acrobat Pro 9.0. Those tools seem to cover meta data, book marks, hidden text, and deleted or cropped content, but not the file path listings that appear on images and objects converted from Powerpoint presentations and other MS Office programs.
    I have reviewed the settings used while creating a pdf, and have also tried the “Advanced > Preflight tool”, but could not find anything to apply to the issue at hand.
    Thus, this issue has not been resolved, but seems like it should be an easy fix that anyone who publishes pdf documents would want to use to publish clean, professional documents without anyone seeing the file path location of every object and image shown in the document on their hard drive.

  • How to get file path in the form \\filer01\dir\index.htm

    Hi,
    after selecting a file using the FileChooser dialog, i would like to convert the file path like "H:\index.htm" into a form like "\\filer01\dir\index.htm".
    On my system, the logical device name H:\ is mapped to a directory on a file server "filer01".
    Is there any possibility to do this conversion?
    Thanks in advance.

    hi,
    i dont think java has a way of figuring out the actual mappings for a drive, you can retrive all drives that are present using the following code
    File [] roots = File.listRoots();
    then you could just iterate through the roots some of which may be mapped (but you cant figure out which is mapped and which is not).
    So i guess the best way to do it is to have a Properties file with key,value mappings. for eg
    h:\\, \\file01\dir\..
    and then read the value from the Properties file, now if you want this for accessing a resource across the network you dont require to get the actual mapping, you can still use the mapped drive as you would use a unmapped drive.
    hope this helpz
    cheerz
    ynkrish

Maybe you are looking for

  • Sub Contracting Process

    my client running fg sub contracting  (electro plating )cycle through the MRP after return from vendor with mvt type 105 (543) i check document list with MB51. i found following g/l account effects : SFG consumption for sub contract  account = 602026

  • WIndow 8.1 installation

    hello sir , i want to install new window because my current window was creating some problem i formated my old window but when i try to instal new window its say that window cannot be installed to this disk ,the selected disk is of the GPT partition

  • Payment api issue on MIDlet Application

    Hi All, I am having an existing MIDlet application in which I want to implement payment api. I have followed all the guidlines provided by BB team. I have even done a sample application for payment api using UiApplication which is working fine, now w

  • Private vs. protected, naming conventions etc.

    I've been grappling with a couple of frustrations with Forte, and I'm interested in feedback from others on this list regarding approaches they may have adopted to address these. One is that in the Forte workshops there is no way to view only the pub

  • PO date

    Hi expert There is tab in PO were is can assign date, after that particular date i wont able to migo and for the same i need message no for PO and Migo. Can some help me. Regard Nabil