CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Fileupload Events Before/After Process File Not Triggered

Print topic Send  topic

Author Message
joseph2k

Posts: 72
Posted: 01/01/2007, 6:24 PM

I have a fileupload component and I have defined the temp folder to be "./files/temp" and regular folder to be "./files"

When I add a file, the Before/After Process File events are not triggered.
However, the file does end up being copied with timestamp to temp folder but thats it.


Anybody got ideas as to why the events are not triggered?
View profile  Send private message
Damian Hupfeld
Posted: 01/02/2007, 2:34 AM

What are the before/after process file events?
Can you post teh code and how you are implementing them?
Do you get any error messages?
Why are the files only appearing in your temp folder and not in the file
folder?


"joseph2k" <joseph2k@forum.codecharge> wrote in message
news:54599c25425ab6@news.codecharge.com...
>I have a fileupload component and I have defined the temp folder to be
> "./files/temp" and regular folder to be "./files"
>
> When I add a file, the Before/After Process File events are not triggered.
> However, the file does end up being copied with timestamp to temp folder
> but
> thats it.
>
>
> Anybody got ideas as to why the events are not triggered?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

joseph2k

Posts: 72
Posted: 01/02/2007, 4:24 PM


The events are available on the fileupload components under the Events tab in the CCS IDE

The events each have a statement to update a label indicating that they were fired.
$Container->StatusLabel->SetValue("BeforeProcessFile");


No error messages.

I have no idea why it gets into temp folder but not into other folder. I was hoping someone would...

View profile  Send private message
joseph2k

Posts: 72
Posted: 01/13/2007, 6:56 PM

anybody got an example that works?
View profile  Send private message
Damian Hupfeld
Posted: 01/14/2007, 2:17 AM

I use an after process code to resize images and it works without issue.
Have you checked permissions on your ./files folder?


"joseph2k" <joseph2k@forum.codecharge> wrote in message
news:545a99bc0b89a7@news.codecharge.com...
> anybody got an example that works?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

joseph2k

Posts: 72
Posted: 02/12/2007, 8:30 AM

Yes permissions are wide open for read/write access...

I even temporarily allowed group read/write on directories to test. same problem.

View profile  Send private message
peterr


Posts: 5971
Posted: 02/13/2007, 1:41 AM

How are you verifying that the Before/After Process File events are not triggered? I'd try adding "exit;" to both events and if the page execution suddenly stops after uploading a file then the events are triggered OK.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
brynje

Posts: 2
Posted: 02/13/2007, 2:35 AM

I too have a problem with the fileupload before/after events... no code is run from them. I was going to have code there to alter picture size, but it won't run any lines in the events.
Tried both exit; and die; with no response from either...

Anyone knows a solution/example ??
_________________
-------------------------------
Protector of innocent routines
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.