|
|
|
Re: delete file from server side using webutil [message #432333 is a reply to message #432314] |
Mon, 23 November 2009 10:53 |
infosuresh2k
Messages: 77 Registered: September 2009 Location: CHENNAI, INDIA
|
Member |
|
|
Hi,
we are already using in our product webutil, To delete the server image file we are using Webutil.Delete_File('Server Path and image name').
Eg:
IF Webutil.Delete_File(v_file_name) THEN
NULL;
END IF;
Same is applicable for deleting file also, for this u have to configure webutil carefully.
Regards,
Suresh.V
[Updated on: Mon, 23 November 2009 10:54] Report message to a moderator
|
|
|
Re: delete file from server side using webutil [message #432335 is a reply to message #430466] |
Mon, 23 November 2009 11:14 |
morchid21
Messages: 12 Registered: November 2009 Location: casablanca
|
Junior Member |
|
|
I tried
using the follow code :
IF webutil_file.delete_file('/pcard20/aemedweb/letters/attachment/10027982.jpg')
THEN
message('ok' ); pause;
ELSE
message('not ok' ); pause;
END IF;
END;
and all the I saw the not ok message.
|
|
|
Re: delete file from server side using webutil [message #432337 is a reply to message #430466] |
Mon, 23 November 2009 11:38 |
morchid21
Messages: 12 Registered: November 2009 Location: casablanca
|
Junior Member |
|
|
Maybe I found a solutiuon using utl_file.fremove but the problem is that when we use webutil_file_transfer.Client_To_AS_with_progress the file is created by ias user and when I try delete using utl_file I can't remove the file because of ias privilege. maybe if I can found some parameter that allow me to create the file with 777 like privilege I will slove my problem
thanks for your replay in advance.
Regards;
|
|
|
|
Re: delete file from server side using webutil [message #432363 is a reply to message #430466] |
Mon, 23 November 2009 17:38 |
arunn
Messages: 52 Registered: September 2008 Location: usa
|
Member |
|
|
Dear Friend,
First, I have question in Your question, why you use the webutil to communicate with your server?
What is WebUtil?
WebUtil provides a simple way to achieve client side integration while running Oracle Forms on the Web. It simplifies the upgrade of existing applications to the web, and enhances the capabilities of Web based Oracle Forms applications.
you can use the host command and text_io. text_io is use to check the file exists or not. host to delete the file.
its my way.
Arun
|
|
|
|