|
|
|
|
|
Re: /oas/product/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEB-INF/lib/frmsrv.jar: [message #445342 is a reply to message #445312] |
Sun, 28 February 2010 23:38 |
morchid21
Messages: 12 Registered: November 2009 Location: casablanca
|
Junior Member |
|
|
This is my procedure, as in webutil demo.
PROCEDURE UPLOAD_AS IS
l_success boolean;
l_bare_filename varchar2(50);
BEGIN
l_bare_filename := substr(:upload.file_name,instr(:upload.file_name,'\',-1)+1);
message('l_bare_filename = '||l_bare_filename);pause;
message('serverFile = '||'/pcard20/hpsweb/letters/'||l_bare_filename);pause;
l_success := webutil_file_transfer.Client_To_AS_with_progress
(clientFile => :upload.file_name
,serverFile => '/pcard20/hpsweb/letters/'||l_bare_filename
,progressTitle => 'Upload to Application Server in progress'
,progressSubTitle => 'Please wait'
,asynchronous => false
,callbackTrigger => null
);
if l_success
then
message('File uploaded successfully to the Application Server');
else
message('File upload to Application Server failed');
end if;
exception
when others
then
message('File upload failed: '||sqlerrm);
END;
|
|
|
|
|
|