Home » Developer & Programmer » Forms » delete file from server side using webutil (oracle 10g Applet 10.1.2.0)
delete file from server side using webutil [message #430466] Tue, 10 November 2009 08:46 Go to next message
morchid21
Messages: 12
Registered: November 2009
Location: casablanca
Junior Member
Hello,

Please how can I delete a file from server using webutil. I download file from client side to server.

Regards
Re: delete file from server side using webutil [message #431087 is a reply to message #430466] Sat, 14 November 2009 11:19 Go to previous messageGo to next message
infosuresh2k
Messages: 77
Registered: September 2009
Location: CHENNAI, INDIA
Member

Use Webutil_File.Delete_File to delete the server side files.

/
Suresh.V
Re: delete file from server side using webutil [message #432314 is a reply to message #431087] Mon, 23 November 2009 09:41 Go to previous messageGo to next message
morchid21
Messages: 12
Registered: November 2009
Location: casablanca
Junior Member
it's impossible webutil_file.delete_file allow us to delete file from client only.
Re: delete file from server side using webutil [message #432333 is a reply to message #432314] Mon, 23 November 2009 10:53 Go to previous messageGo to next message
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 Go to previous messageGo to next message
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 Go to previous messageGo to next message
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 #432343 is a reply to message #432337] Mon, 23 November 2009 13:03 Go to previous messageGo to next message
infosuresh2k
Messages: 77
Registered: September 2009
Location: CHENNAI, INDIA
Member

try to open the below from Start-->Run, this wont open the image

/pcard20/aemedweb/letters/attachment/10027982.jpg

i think u have to put like this '\\pcard20\aemedweb\letters\attachment\10027982.jpg' then only it will delete or open the file

Please check the webutil.conf and formsweb.conf file also.

[Updated on: Mon, 23 November 2009 14:47]

Report message to a moderator

Re: delete file from server side using webutil [message #432363 is a reply to message #430466] Mon, 23 November 2009 17:38 Go to previous messageGo to next message
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
Re: delete file from server side using webutil [message #432473 is a reply to message #432363] Tue, 24 November 2009 07:06 Go to previous message
infosuresh2k
Messages: 77
Registered: September 2009
Location: CHENNAI, INDIA
Member

Hi,

i agree Webutil is client side integration,
but we can delete or transfer the server side files using the below

1.Webutil_File_Transfer.Client_To_AS
2.Webutil_File_Transfer.AS_To_Client

Note : Using Webutil_File.Delete_File we can delete the server side file also.

Regards,
Suresh.V
Previous Topic: ORA-01747 on item from query
Next Topic: rremove the top bar
Goto Forum:
  


Current Time: Wed Dec 04 19:37:43 CST 2024