Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
myss44506yCan you double check you've set it for proper php version you're using / in correct config and confirm those settings with phpinfo()?
-
I've only got one version installed - I'll triple check that, but I've only got the php.ini in /etc/php/7.2
-
cursee165956y:3 silly shameless confession time.
I usually forget to mention enctype in my form tag. -
I did that at first too to be honest - I checked that, and it works like a dream for small files under 2 MB.
-
tanami226yHave you set the max post size in your web server? or are you using the inbuilt PHP server?
-
I'm using Apache, and yeah I've got that set as well. It's bizarre - I've set every variable that should be relevant and it doesn't seem to make a difference.
-
I know it’s obvious but did you check these...
upload_max_filesize and post_max_size directives in your php.ini file. -
Or try adding this to a .htaccess file in web root.
php_value upload_max_filesize 40M
php_value post_max_size 42M -
C0D4669026yIs you’re using Apache, does the Apache user (Apache/www-data, depending on OS) have write access to the directory?
-
This is the kinda bug where if u quickly do the exact same stuff in a fresh project it’ll work but not in the original 🙄
-
myss44506yDid you figured it out? You can contact me on discord tonight and can give you a hand if you haven't..
-
I recall that files are ignored with DELETE and PUT requests and only work through POST :/
Somebody out there please tell me why I'm uploading a 17 MB file and PHP isn't showing a $_FILES array? It's just not there. I've set the max post limit and the max upload limit to 128 MB. The files are going to get way bigger than this. Why does this server like hurting me?
question