Forums

No error message when upload fail

nhathao93 21 Sep, 2014
Hi,

I am currently setting up a form with file upload function. It works well with allowed files. However, when it comes to files that exceed max size limit or have different file extensions, the form does not show any error messages. Here is the screenshots:

Setup Tab


File upload settings


No error messages displayed when upload fails




Could you please show me how to show the messages? I would be most grateful.

Thank you,
GreyHead 21 Sep, 2014
Hi nhathao93,

The Debugger doesn't show any sign of the File Upload element, or of the Upload Files action having been run.

What is the name of the File Upload action and what other settings do you have in the Upload Files action?

Bob
nhathao93 21 Sep, 2014
Hi Bob,

The field name of File upload is file1 and here are file extensions settings in the action:
.

Other settings are all default.

Nhat Hao
Max_admin 22 Sep, 2014
1 Likes
Please test the form using the "view form" link in the forms manager, also please test with a less than 1 mb file but with a different extension, how does this work ?

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
nhathao93 22 Sep, 2014
HI Max,

I tried uploading an 300kb excel file and the message appeared. Maybe the problem only occurs when files exceed the file size limit.



Regards,
Hao
nhathao93 22 Sep, 2014
I also tried upload another 5mb powerpoint file. No message was shown. It is true that the size limit is the problem.
GreyHead 22 Sep, 2014
Answer
1 Likes
Hi nhathao93,

What is the max_file_size setting in your PHP.ini file? That may be the problem here.

Bob
nhathao93 22 Sep, 2014
Hi Bob,

Thank you for your reply. I edited the max_file_size value in php.ini and the upload function works perfectly. Thank you very much.

Nhat Hao
This topic is locked and no more replies can be posted.