Hi creositi,
The very big file gets uploaded ? are you sure ? can you find it with the same size on your server ?
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
No, sorry, I explained badly.
I do not know if you remember me, we had felt by mail a week ago (I'm Italian) to the upload form, after uploading to file you will be redirected to paypal, thanks to paypal IPN, the file is moved to a other folder.
The file is not loaded (in the sense that it is not saved), but the form redirects to paypal and does not come out the error of chronoform. The user pays and think that the file is loaded.
PS I've also sent an email a couple of hour ago for a small problem always relative to this forum .... we have added that the form sends an e-mail if paypal confirm payment. I entered the user data in this mail (e-mail address and username) but I think it conflicts with the redirect to paypal. Because if I remove the redirect to Paypal, the mail arrives with the user's data. If I leave the redirect to paypal, the mail arrives without the user's data ...
Sorry if I added another problem:-(
I remember you, I will reply to your email shortly!🙂
But regarding the question here, I think PHP just ignores the file because its very large, you may also check with your host admin if there is a PHP setting to make PHP returns an error, but it looks like there is not, check the answer here:
http://stackoverflow.com/questions/615312/no-error-when-uploading-a-really-big-file-in-php
So the best solution in this case is to use "Custom server side validation" to check that the file is not empty:
<?php
if(empty($form->files["file_field_name"])){
$form->validation_erros[] = "File upload failed".
return false;
}
And then use an "Event loop" in the "on fail" event of the "custom validation" action.
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Perfect, this works .... thanks a lot.
The file is not loaded, but I get this error:
Parse error: syntax error, unexpected 'return' (T_RETURN) in /home/..../public_html/administrator/components/com_chronoforms/form_actions/custom_serverside_validation/custom_serverside_validation.php(19) : eval()'d code on line 4
You can change the phrase error? In such a way that the phrase is: FILE IS TOO BIG ...
Hi Creositi,
I'm not sure why you aren't seeing an error when a very big file is uploaded; that might be a ChronoForms bug :-(
You can usually change the max-filesize setting in your php.ini file - check with your webhost to see how they have this set up.
Bob
My code has a bug, sorry, please change this line:
$form->validation_erros[] = "File upload failed".
to:
$form->validation_erros[] = "File upload failed";
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Thank you!🙂
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?