CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 problem in upload file

Print topic Send  topic

Author Message
boolean

Posts: 62
Posted: 11/16/2007, 12:59 PM

Hi,
My server is IIS7, MySQL5, and PHP5. and I use CCS3.2 to upload a file. After I set up the File Upload to a field of my database table, I click the Browse button to select an image and press Add button, I got the following error message

The file attachment in field File Name is required.

I check the Control Source property, and it is set to the correct field in the database. I can't figure out why I got the error why the field has valid file and file name.

Please suggest what cause the error. Thanks.
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 11/21/2007, 11:49 AM

boolean
Have you set any of the fields on the form to required, which means that the field is required for entry into the database?? It appears to be a field that is required that you have not put and data in.
View profile  Send private message
boolean

Posts: 62
Posted: 05/30/2008, 12:21 PM

The only required field is the file name which is the Upload File field. As I browse and select the file, the field has a file name. It works fine in CCS 2.3. Please suggest.

Thanks.
View profile  Send private message
boolean

Posts: 62
Posted: 06/02/2008, 6:43 AM

Even I reset the Required field in database and the uploadfile properties to No, it just add a new record and does NOT upload the file.

Please suggest. Thanks.
View profile  Send private message
maxq

Posts: 15
Posted: 06/07/2008, 3:03 PM

I experience this problem as well running CodeCharge 4.00.04 and PHP/MySQL. It only occurs on files larger than 1.5MB. At first I thought that I had some problem with the database, but later found that small files was uploaded as they are supposed to. I did not have this problem with CCS 3.1 and 3.2.

Any help would be appreciated.
View profile  Send private message
jjrjr1


Posts: 942
Posted: 06/07/2008, 3:59 PM

Hi

I have experienced the same error.

It is sort of misleading and I do not know why this error is returned by CCS for this.

I have seen this when the filesize of the upload file is larger than the upload limit defined by php.ini.

There are 5 entries that affect this in PHP.INI and all must be set to allow the parameters relating to a file upload.

Anyway, That might not be your problem. I never understood why if the file was over the php file size limt I would get the error "filename in field.... required". Although I never explored the CCS code.

Hope that helps

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


Posts: 942
Posted: 06/07/2008, 4:02 PM

Incidentally.. also check the allowed file masks for proper file type able to upload

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


Posts: 942
Posted: 06/07/2008, 4:05 PM

Sorry. Forgor these

In php.ini these setting need to be adjusted to support a file upload of a certain size

max_upload_size
memory_limit
post_max_size
max_input_time
max_execution_time

You might want to also check the max filesize for the control in CCS along with the allowed mask.

_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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