File_uploads = Off

Website URL

(please specify the URL of the site on which you are experiencing the problem)

Error Message

it is not uploading the file in the MYSQL data base is the file_uploads = Off

Other Information

(other information and details relevant to your question)

https://kinetichub.free.nf/naplan/
file_uploads = Off can it be made on

I can’t say I’ve tried uploading files to my database. But if the server is configured to not allow this, then admin can’t/won’t make changes for individual accounts

4 Likes

The file_uploads setting is set to 1 on all servers. This is equivalent to it being set to On. It’s definitely not Off, and file uploads do fully work.

If your website says differently, then either:

  • Something went wrong with the configuration on the server you’re on resulting in file_uploads not being enabled (not likely, but possible).
  • Your website checking only whether the setting is On, and assuming that every value means it’s off. But then that’s a bug in your website, because other settings than On can be used to enable a feature in PHP configuration.

If you want to test it, you can setup a file on your website with a little bit of testing code like this:

<?php

echo "file_uploads: ";
var_dump(ini_get('file_uploads'));

Then access that file to see what the setting is actually set to for your website.

5 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.