You are viewing the PKP Support Forum | PKP Home Wiki

Upload File Size

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Upload File Size

Postby hehe » Thu Apr 24, 2014 4:01 am

Hey all,

I'm trying to upload a file of 3.6MB, and it fails to upload. I can upload files with less size, like 1MB.

I checked php.ini's file size options. There were 2 options related to that, I guess.

I wrote

Code: Select all
php --ini

to locate my php.ini file. The output is:

Code: Select all
Configuration File (php.ini) Path: /etc/php5/cli
Loaded Configuration File:         /etc/php5/cli/php.ini
Scan for additional .ini files in: /etc/php5/cli/conf.d
Additional .ini files parsed:      /etc/php5/cli/conf.d/10-pdo.ini,

So, I edited
Code: Select all

I edited those lines:

Code: Select all
upload_max_filesize = 20M
post_max_size = 80M

And then, I restarted apache.

Code: Select all
sudo service apache2 reload
sudo service apache2 restart

However, I still can't upload my 3.6MB PDF file.

What must I do? Thank you very much.
Posts: 24
Joined: Tue Jan 07, 2014 2:59 am

Re: Upload File Size

Postby asmecher » Thu Apr 24, 2014 7:52 am

Hi hehe,

See the OJS FAQ. There's an Apache setting you might also need to check.

Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 2 guests