CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Update file (uploaded file) in editable grid is not deleting old one?

Print topic Send  topic

Author Message
matik

Posts: 57
Posted: 11/21/2007, 3:41 PM

Greetings,

I createed editable grid where you can upload image. But if i want just to replace image for current record image is replaced in database and new image is uploaded to server but old image is not deleted from server.

Any idea how to delete old image??

Thanks
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 12/06/2007, 8:15 PM

matik
Is the image using the same name or a different name??

You could also put code in the before update event to delete the current image before you upload the new image.
View profile  Send private message
matik

Posts: 57
Posted: 12/06/2007, 11:21 PM

Its using diferent name. even if you use the same neame you have timestamp before every image name when you upload.

Thank you
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 12/10/2007, 8:14 PM

matik

Did you resolve this......or are you still working it??
View profile  Send private message
matik

Posts: 57
Posted: 12/11/2007, 1:59 AM

No, I dident find any solution yet.

Matik
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 12/11/2007, 7:35 PM

matik
Did you try putting custom code in the BeforeUpdate Event that would delete the saved image before adding the new image??
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.