CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Deleting a File with a Dynamic FileFolder

Print topic Send  topic

Author Message
paulmason411


Posts: 127
Posted: 11/17/2008, 9:40 PM

Hi Guys,

Using a File Upload component I am able to upload files into a dynamic folder by using the following code:

Before Process File
  
$Component->FileFolder = $dynamic_folder;  

However when I use the form in update mode, I am unable to delete the file as it can't be found. The problem is that the File Upload component isn't using the FileFolder variable that I set when uploading the file. I have tried adding the above code to the Before Show process and it still doesn't work.

Any ideas would be appreciated. Thanks.
_________________

http://paulmason.name - Web Development Blog

View profile  Send private message
jjrjr1


Posts: 942
Posted: 11/18/2008, 6:52 AM

Did you tru putting it in the before execute update or one of those events?

_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
paulmason411


Posts: 127
Posted: 11/19/2008, 4:34 PM

Hi John,

I've tried putting the code all through the FileUploads processes and all through the Records processes. When I reference it from a Record process, I use the following:

$Component->FileUpload1->FileFolder = $dynamic_folder;

I managed to remove the error message however the file doesn't physically delete.

Can someone let me know if I have to re-write the clsFileUpload class in Classes.php? Thanks
_________________

http://paulmason.name - Web Development Blog

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.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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