How to get the full path using HTP. PRINT ("<" input type = "file")...

Hello everyone,

I'm working on downloading the page file to another using the package HTP, but whenever I submit the form, it takes only the file name without the full path.
for example:
If I sent 'c:\dir\a.txt', the other page receives the parameter file as 'a.txt ".


the code is here


Download of the PROCEDURE (appno in varchar2, wsct in varchar2) AS



l_real_name VARCHAR2 (1000);




BEGIN




HTP.htmlopen;
HTP.headopen;
HTP.title ("Test Upload'");
HTP.headclose;
HTP.bodyopen;
HTP.header (1, 'Test Upload');
HTP.print ('< form action = "https://ssltrng.uaeu.ac.ae/trng/document_api.upload1" method = "get" >');
HTP.print (' download file: < input type = "file" name = "file" >)
');
HTP.print ('< input type = "submit" value = "Upload" >');
HTP.print ('< activated >');
HTP.bodyclose;
HTP.htmlclose;


Download END;

the other page see so

file is "water lilies.jpg".

Thank you

Published by: dtabed on March 30, 2011 01:02

For Internet Explorer 8 and later versions, you must set a security setting to get the full qualified path: see http://msdn.microsoft.com/en-us/library/ms535128.aspx.

For other browsers, there could be a similar setting.

Tags: Database

Similar Questions

  • How to get the full path of the image open in a filter plugin file?

    Hello

    How to get the full path of the current file, including the directory, the file name with the extension. I need information to download the file on a webserver for a plugin. I found an example that can get the name of the document (title property) but without extension and directory. How can they?

    James

    There is no way to get the full path of the active document in a plug-in filter. A plugin automation has access to this information and the file format plug-ins.

  • How to get the full path of the af:inputFile component

    Hello

    I use af:inputFile component in my application to download an Excel file and get the data from the file.

    From the component, I could get only the file name.and not the full path to the file.

    So, I am unable to access the file to extract the data from it.

    Is it possible to get the full path of the file to access to retrieve the data from it?

    Data or data streams is only valid in the same request. Once you navigate, the stream is closed and you get nothing if you try to read it. You need to download the file on the first train in the temporary location (Tip: search ;) File.createTempFile ("temp-file-name", ".tmp") and put the file name and the path to your beans.)

    Timo

  • How to get the full path of the appellant VI?

    LabVIEW 8.x broken my code.  I used to be able to refer to a VI by name, and it now wants the full path.  Unfortunately, "call chain.vi" returns only the name.  Does anyone know how to refer to the vi (its full path) that calls a particular sub - VI, of the Subvi?  It was the second element of the array string of "call chain.vi".

    I use LV8.6.

    Thank you

    Jeremy

    Hi Jeremy,.

    I'm not sure 8.6, but in 8.5.1 you can always use a string containing the name of VI to open a reference of a VI in memory.

    Does not allow a constant way with just the name of VI well.

    Daniel

  • How to get the full DDL using SQL developer

    Hi all

    I need get the full DDL a table with the details of the index partitions, synonyms, comments (if any) and give information if given any role, use SQL developer. We can achieve the same thing using shortcut F4 on name of the table into a frog, then selecting tab DDL. Is it possible to get the same in SQL Developer also?


    Also how I see existing procedures using SQL developer?  A toad, we were able to achieve using the schema browser.

    Hi all

    I reached by - right click on connection - diagram open... and any browser will even...

  • How to get the full path without a docs «~»

    My file is here:

    'C:\Users\first.last\Desktop\PS_Tester\SRC\Work.psd '.

    Note that doc is on the desktop (Windows).

    Copy the following code:

    var Vc_v7 = activeDocument.fullName;

    Alert (myTest);

    Returns:

    "~ / Desktop/PS_Tester/SRC/Work.psd".

    I would like to and wait until he returns the real path with the 'C:\Users\first.last' and not the «~»

    When I pass the ~ path to another app folly occurs.

    Or y at - it a way to get that represents the tilde?

    Just a slight correction, for the alert. using a forward slash is not now with what you're going to get back, that will be all the backslashes normal. You need a double backslash:

    alert(MyTest+"\\"+app.activeDocument.name);
    
  • How to get the default path of the data of a table space file

    I used below the sql statement to create a table space:

    CREATE A TABLESPACE DATAFILE AAA BBB SIZE 10 M AUTOEXTEND OFF...

    Notice, I do not give a full path instead of a file name, and then ask questions relevant to tables

    get the full path of the data file, assume that it's path below:

    d:\oracle\...\BBB

    So I don't think that there is a default path that oracle can use it to create the data file. My question

    is how to get this default path before creating a table space.

    Thank you very much.

    Hello

    I did similar simulations for you, then it could be seen easily:

    SQL > Show parameter db_create_file_dest

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    db_create_file_dest chain

    SQL > SELECT NAME, VALUE OF V$ PARAMETER

    2 where lower (name) = "db_create_file_dest;

    NAME

    --------------------------------------------------------------------------------

    VALUE

    --------------------------------------------------------------------------------

    db_create_file_dest

    It has the value NULL. Then where my datafile is going?

    SQL > create tablespace TEST datafile 'test01.dbf' size 10 M;

    Created tablespace.

    SQL > select file_name

    2 of dba_data_files

    3 where nom_tablespace = 'TEST ';

    FILE_NAME

    --------------------------------------------------------------------------------

    /U01/app/Oracle/product/12.1.0/Db_1/DBS/Test01.dbf

    When you check the alert logs, it will not show you the location of the data file. It will tell you what exactly you ran.

    ..

    ..

    Completed: drop tablespace test whose content and data files

    create tablespace datafile 'test01.dbf' size 10 M TEST

    Completed: create tablespace TEST datafile 'test01.dbf' size 10 M

    ..

    ..

    You can not SQL user * more? Well, I would say that, when you run the CREATE TABLESPACE command, is where you run the command:

    SQL > select file_name

    2 of dba_data_files

    3 where nom_tablespace = 'TEST ';

    FILE_NAME

    --------------------------------------------------------------------------------

    /U01/app/Oracle/product/12.1.0/Db_1/DBS/Test01.dbf


    So, you should get the location of your data file. Alternatively, you can run the query in the parameter $ v so that you know your default data file location.

    I hope this helps.

    Thank you.

    Kind regards

    Gaetan

  • Get the full path of the file.

    Hi all!
    I work with ODI 11.1.1.3 and everything works well in my interfaces. Now, I need to add a new step on the package.
    My interface uses a flat file (.txt) as the source and load its data to an Oracle DB.
    The new step that I have to add should delete the source at the end of the process.
    I don't want to hard-code the full path of the file in the delete command, so I wanted to do the sam using the odiRef functions, but I did not work.
    I used the getObjectName function, but it does not work.

    Anyone has an idea on how to get the full name of the file?

    Thanks in advance!

    Hello

    Sorry for typo's fault.

    The command has been

    OdiFileDelete ""-FILE = < %="odiRef.getSchemaName" (""="" model_code_here"",="" ""d"")%=""> /YOUR_FILE_HERE ""-RECURSE = NO "" "-CASESENS = NO" "-NOFILE_ERROR = YES.

    Sorry for the distraction :(

  • Forms 6i: how to get the UNC path? SOLVED

    Anyone know how to get the UNC path of in Oracle Forms 6i

    For example, if the user enters an output file:
    j:\Data.txt

    How I translated that UNC path:
    \\serv-123\cfs\data.txt

    Basically, I need to pass the UNC path to a regular DB procedure that later would be to copy an output file at the location specified by the user. "J:" being a network drive mapped, the database server would not be able to copy the file.

    Thank you
    Jim

    It's perhaps easier: read the registry using WIN_API_ENVIRONMENT. READ_REGISTRY. The key is HKEY_CURRENT_USER\NETWORK\\RemotePath.

  • How to print the full path when you print photos with CS6?

    How to print the full path on the photo when printing photos with CS6?

    Hello

    You will need to use a Script to print the name of the file in Photoshop Cs6

    Something like Add file name as text layer "Julieanne Kost's Blog of »

    Concerning

    Assani

  • How to get the full name of the user to a sso.

    Hi all

    I am brand new with oracle application server.
    I use oracleAS 10g with SSO enabled. How can I get the full names of the users?
    I know that this information can be obtained with the command 'ldapseach' but I'm looking for information in a view or a package.
    Is it possible to get this information in a view or a package?

    Thank you.

    Look at the portal.wwse_api function person_info package
    Maybe it's something similar that you are looking for

  • How to get the full phone number?

    I try to get the full phone number using the device.

    I + 1 807 1234567 number and copy the following code:

    Phone *phone = new Phone(this);
    QMap lines = phone->lines();
    foreach(Line line, lines)   {
        if(line.type()==LineType::Cellular)
            phoneAns = line.address();
    }
    

    Gets only 1234567.

    Could you help me, please?

    Thanks in advance

    There could be a problem with the way the SIM card has been implemented.  I would recommend give you carrier a call to see what they say.

  • How to get the full name of the user of the OPS?

    Hi Experts,

    I know we can get the login controller pageContext.getUserName () user name. Is there a simple way/API to get the full name of the user (name, first name) of the OPS?

    Thank you.

    Hello

    USER name and information of the PERSON are two different concepts. You can get the id of user with pageContext.getUserId () connection. In order to get the first name, last name, you must select it from table PER_ALL_PEOPLE_F.

    You can use the sql select and set pUserId of pageContext.getUserId ();

    SELECT FIRST_NAME, LAST_NAME TO PAP PER_ALL_PEOPLE_F, FND_USER FU

    WHEN TRUNC (SYSDATE) BETWEEN PAP. EFFECTIVE_START_DATE AND PAP. EFFECTIVE_END_DATE

    AND FU. EMPLOYEE_ID = PAP. PERSON_ID

    AND FU. User_id =: pUserId

    Anil

  • How to get the absolute path to a file in photoshop extended?

    Hello

    I try to send a file via an entry inside an extension of Photoshop. But how can I get the absolute path to this file inside the computer?

    Thanks in advance

    I don't know what you mean by sending a file. Do you want to open a file in PS or do I have to declare the path for support for the extension file? With javascript, you must define a variable. In Win it should look like:

    var file = new File('/c/images/myfile.psd');
    

    or

    var myScript = new File(app.path + '/Presets/Scripts/myJavascript.jsx');
    
  • How to get the full name (device disk) using esxtop?

    Hello

    I am looking for storage settings using esxtop - pressing 'u' for drive.

    As I use the iSCSI (open file server) device, I couldn't see the identifier of the full device. Can someone help me to get this.

    I have attached the screenshot of esxtop for this...

    Device name.jpg

    Any idea? Thanks in advance.

    In ESXTOP enter a capital 'L' and type a number to make the larger DEVICE field. Depending on the length of the name of the device - you might need to up to 40 characters to present the full name.

    Entering the '?' in ESXTOP will give you the options you can set (this information is also there as well).

Maybe you are looking for

  • Always choose Yes, 'take me to &lt; name &gt;' instead of ask

    When typed a URL in the address bar, if the URL is just a name without a plan or a path and if the name is resolved in the DNS, and if the name contains no points, then Firefox guest "Did you mean to go to < name >?" and redirects to a search for the

  • Update of Y700 Lenovo Solution Center to remove?

    Hello I was checking my computer for his weekly inspection, and I noticed that Lenovo Solutions Center program had an update, (seen it opening just the program and a popup came say theres a new update), I clicked update, it did its thing has shown a

  • HP Pavilion 15 t-n200: HP Pavilion 15 t n200 - ANOTHER problem of flag - DISPLAY messed...

    So, I bought laptops 15 t-n200 of TWO 2 HP Pavilion last year, and here it is the specs: S window 7 Home Premium 64 4th generation Intel® Core™ i5-4200U processor + Intel® HD graphics card diagonal 15.6-inch BrightView HD (1366 x 768) LED backlit 8 G

  • MGI PhotoSuite

    All my photos go in MGI PhotoSuite instead of the windows photo gallery. I think I have downloaded this program from my xp discs I got from my other computer. It does not appear as MGI PhotoSuite on my programs so how do I uninstall it? Would it not

  • Prevent the tap and hold the right menu?

    I have a bit of a problem trying to set up a list of re-controlled. I want you to be able to hold an item, and then drag it to reorder the list. This part is made and works. The problem is whenever you press and hold on the screen, you can a side men