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

 add file upload manually

Print topic Send  topic

Author Message
lambari

Posts: 2
Posted: 09/30/2004, 5:03 AM

Hi guys, first sorry about my bad english.

I have a big problem:
I had a mailform that waas working great for about 3 months. But my client ask me to add a new feature: attachments. The problem is i changed de code manually to make the 1st version of my mail and when i add the upload file component it doesnt work. (i already started the class with "new clsFileUpload...")

It doesnt returns any error but the file isnt uploaded. How to make it works?

thanks
View profile  Send private message
klwillis


Posts: 428
Posted: 09/30/2004, 9:47 AM

I've had the same problems when attempting to tinker
with the code directly. :-O

I'm not sure why you are trying to manually add the FileUpload
component though - it's best to do this through the provided builder.

If you can backout your changes to where the mailform used to
work, then try adding the FileUpload component using the builder.


_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
lambari

Posts: 2
Posted: 09/30/2004, 12:40 PM

Im using the builder, but the code i changed is the one that initialize the objects so i initialize the clsFileUpload manually. But it doesnt work

(i cannot backout my changes)

any help?
View profile  Send private message
peterr


Posts: 5971
Posted: 10/01/2004, 2:21 AM

Not sure what state your project and code are in, but I'd recommend:
1. Backup your project folder.
2. Delete the PHP script that was generated from you page (PageName.php), but do not delete PageName_events.php if you have one.
3. Re-publish the page in CCS, which will re-generate your PHP script again.

This way you will have a 'clean' PHP script , which you can continue modifying with or without CCS.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
klwillis


Posts: 428
Posted: 10/04/2004, 9:29 AM

Hi Peter -

Is there a way (without deleting) to regenerate the PHP script
for a page?

Just curious.

- Kevin

Quote peterr:
Not sure what state your project and code are in, but I'd recommend:
1. Backup your project folder.
2. Delete the PHP script that was generated from you page (PageName.php), but do not delete PageName_events.php if you have one.
3. Re-publish the page in CCS, which will re-generate your PHP script again.

This way you will have a 'clean' PHP script , which you can continue modifying with or without CCS.
;-)
_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
peterr


Posts: 5971
Posted: 10/04/2004, 10:12 AM

No, because we don't know of any reason of doing so since the result would be the same.
When regenerating a page all code modifications are preserved specifically not to touch the manual changes to the code. If you no longer want these changes, you would need to delete the page or the code blocks that you want to regenerate.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
klwillis


Posts: 428
Posted: 10/05/2004, 2:57 PM

That's odd, because I've tried both F8 and Ctrl+F8 on the effected page,
and the problem still persists.

To give you more history on this, I added new fields to the MySQL
table and then when I attempted to display the record form with the
new fields added, I got the error messge these new fields where
unknown (refering to them as "non-objects").

I noticed in the main php page (not the events page), that the attributes
for these new fields were not added to the class definition - very odd.

Regenerating this page I thought would clearup the problem, but it
doesn't and I'm forced to modify the record class directly, and add in
the new fields that way.

Quote peterr:
No, because we don't know of any reason of doing so since the result would be the same.
When regenerating a page all code modifications are preserved specifically not to touch the manual changes to the code. If you no longer want these changes, you would need to delete the page or the code blocks that you want to regenerate.

_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
peterr


Posts: 5971
Posted: 10/06/2004, 1:21 AM

Quote :
Regenerating this page I thought would clearup the problem
Do you mean that you deleted the whole page and then regenerated it?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
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.