Attachment problem

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
dudely
Posts: 12
Joined: Thu Jul 20, 2006 9:39 pm

Attachment problem

Post by dudely »

I am having trouble attaching large PDF files to records. I have the limit set to 20 megs in both the phpMyFAQ settings and in the php.ini file. Upon trying to upload a 15 MB PDF I get the following error: The file attachment.php cannot be opened without proper authentification. Any idea what would cause this? Every other file works just fine.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you upload smaller files?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
dudely
Posts: 12
Joined: Thu Jul 20, 2006 9:39 pm

Post by dudely »

Yes I can upload smaller files. The biggest one I've successfully uploaded so far was 3 MB.
dudely
Posts: 12
Joined: Thu Jul 20, 2006 9:39 pm

Post by dudely »

I just found the problem. For anyone else that runs into this issue, there are actually two settings you need to change in the php.ini file if you want to change the upload limit. The first is post_max_size (I assume the attach file function uses POST, its default was 8M) and the second is upload_max_filesize. I set both of these to 20M to accomodate large PDF files and now everything is working fine. If you are using IIS, reset after you make these changes to php.ini.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

okay, thanks for the hint!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply