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
|
 |
 |
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 |
 |
 |
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
|
 |
 |
|