This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
As I stated in the topic of this post, I'm not able to upload a pdf file using the media manager. I have done a fresh installation of October via composer and I haven't modified the config section related to the media manager. Do I need to enable something in order to be able to upload a pdf? Thanks
I am able to upload a pdf to my installation. This is a complete guess but the pdf file size may be larger than your PHP upload limit setting. You may need to adjust your PHP settings.
Last updated
Thank you @jonathanmaloy for your replay. I increased the php upload limit setting and now all is working as exepcted. Thank you again.
Not a problem. Since that was the problem you might want to make sure that post_max_size is set to a number that suits your typical uploads as well (if not done already).
I'm running in docker container: https://hub.docker.com/r/dragontek/octobercms/ But i can not find out php.ini in path of docker container. Someone can help ?
@tien.dinh20478,
You can add custom php configurations to the /usr/local/etc/php/conf.d/
directory. The solution suggested by the Wordpress image (which I based mine off of), is to create a uploads.ini
with the following content:
file_uploads = On
memory_limit = 64M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 600
And then link it in the container like so:
$ docker run -p 8080:80 -v uploads.ini:/usr/local/etc/php/conf.d/uploads.ini -d dragontek/octobercms
or with docker-compose.yml
:
db:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: "PASSWORD-HERE"
october:
image: dragontek/octobercms
ports:
- "8080:80"
links:
- db:mysql
volumes:
- uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
I hope that helps. It's not an elegant solution in my opinion, but it should work.
Thank you,
Josh
jonathanmaloy said:
I am able to upload a pdf to my installation. This is a complete guess but the pdf file size may be larger than your PHP upload limit setting. You may need to adjust your PHP settings.
Hey Jonathan,
maybe i have the same problem because i want to upload a 160MB+ PDF file and the backend says that the upload succeeded, but then nothing happens.
How does October communicate the upload process of such big data?
Another numb question: Where do i have to set/change the file limits?
Please let me know. Thanks for your efforts. :*
Cheers, Niels
1-7 of 7