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