Forums

Max File Size results in You are not allowed to access this

weiseren 25 Feb, 2013
I have set a max file size of 4096kb on a file upload - however I am still able to upload a file which is larger than this but then when it finishes i get:
- You are not allowed to access this URL

I read something about having to do some loop on submit? Will this stop the form from submitting before the file tries to upload?

I am using the chronoforms for j.1.5.26
GreyHead 25 Feb, 2013
Hi weiseren,

What URL do you see when you get the error message?

ChronoForms can only check the file size after the file has uploaded. The Uploading is done by your server using PHP and there are some limits set in the PHP.ini file about file-sizes. These vary widely but 2 or 8Mb are common. Please check the PHP Info tab in your site admin to see what settings are being applied.

Bob
weiseren 25 Feb, 2013
That did the trick - setting php max file size through htaccess

I get this in the email field on reload however - is there any way to prevent this?

<script language='JavaScript' type='text/javascript'> <!-- var prefix = 'mailto:'; var suffix = ''; var attribs = ''; var path = 'hr' + 'ef' + '='; var addy70884 = 'll' + '@'; addy70884 = addy70884 + 'weiswise' + '.' + 'com'; document.write( '<a ' + path + '\'' + prefix + addy70884 + suffix + '\'' + attribs + '>' ); document.write( addy70884 ); document.write( '<\/a>' ); //--> </script><script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>Denne emailadresse er beskyttet mod programmer som samler emailadresser. Du skal aktivere javascript for at kunne se adressen. <script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </script>
GreyHead 25 Feb, 2013
Hi weiseren,

Good to hear that fixed the upload :-)

Please see this FAQ

Bob
weiseren 27 Feb, 2013
Hello again Bob,

I have some issues still it seems:

If I upload 4 files, 3 of which are under limit (4mb), and one is over (4.2mb), then it will not give error then it sends me to the "You are not allowed to access this".

If I upload the one big file alone, with 3 small images - then it catches the error.

max_execution_time local 30 master 30
max_file_uploads 20 local 20 master 20
post_max_size local 8M master 8M
upload_max_filesize local 15M master 2M


BR
Kasper
GreyHead 28 Feb, 2013
Hi weiseren,

What URL do you see when you get the error message? I'm pretty certain that this is still a server/PHP upload error of some kind. There's nothing that ChronoForms can do about that because it happens before ChronoForms sees the form submission.

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