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 uploading but not moving files

Print topic Send  topic

Author Message
djtabish

Posts: 16
Posted: 10/26/2007, 4:01 PM

Hello folks,
I have added the FileUpload component to a php page in CodeCharge. The script uploads the files to the temp location, however, the files are never moved to the File Folder location. No database is involved and no errors are generated. My settings are:

Control Source Type - Database Column
Control Source - [none]
Temporary Folder - /home/ccqq/public_html/Dealers/Content/temp
File Folder - /home/ccqq/public_html/Dealers/Content
Allowed File Masks - *.txt

Any ideas on why the files aren't being moved over? Is the best solution just to alter the events so that the file is uploaded under the original filename to the File Folder?

Thanks,
Donna
View profile  Send private message
DonP
Posted: 10/26/2007, 8:16 PM

As I recall, the CodeCharge FileUpload component requires a database as this
is where it stores the file name and anything else you want to save
regarding the file. You can try creating a simple table for the purpose and
see if it helps.

Don (DonP)

"djtabish" <djtabish@forum.codecharge> wrote in message
news:5472271e7ab1d7@news.codecharge.com...
> Hello folks,
> I have added the FileUpload component to a php page in CodeCharge. The
> script
> uploads the files to the temp location, however, the files are never moved
> to
> the File Folder location. No database is involved and no errors are
> generated.
> My settings are:
>
> Control Source Type - Database Column
> Control Source - [none]
> Temporary Folder - /home/ccqq/public_html/Dealers/Content/temp
> File Folder - /home/ccqq/public_html/Dealers/Content
> Allowed File Masks - *.txt
>
> Any ideas on why the files aren't being moved over? Is the best solution
> just
> to alter the events so that the file is uploaded under the original
> filename to
> the File Folder?
>
> Thanks,
> Donna
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

djtabish

Posts: 16
Posted: 10/27/2007, 8:47 AM

Thanks, that would be it indeed. As soon as I set up the db table, the rest of the functions worked perfectly. I thought there'd be a way to use the feature without using a table, but I gather not.
Thanks again,
Donna
View profile  Send private message
wkempees
Posted: 10/27/2007, 2:31 PM

CCS is a database webenabling RAD tool.
Which in itself says it all, ;-)
Walter

DonB
Posted: 10/29/2007, 7:29 AM

You are free, of course, to use the $_FILES and $_POST data structures to
move/store files without the database dependency. It means a half-dozen
lines of code in a suitable event such as the OnClick of a submit button.

--
DonB

http://ccswiki.gotodon.net


"wkempees" <kempe819@planet.nl> wrote in message
news:fg0amv$7rp$1@news.codecharge.com...
> CCS is a database webenabling RAD tool.
> Which in itself says it all, ;-)
> Walter
>
>


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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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