💬 Frequently Asked Questions
Due to the enormous number of people using Directus, our Core Team can only provide support to paying Directus Cloud customers or clients who purchase support hours.
My relational data/file is only returning an ID
Please note the following two things:
Directus allows you to request specific field data at different depths. You can use the
fieldsparameter to fetch deeper relationships fields (eg:
?fields=*.*.*for three levels deep) or even specific fields to keep things as performant as possible (eg:
?fields=image.titlefor a relational image's title).
Ensure you have the correct correct read permissions for the table your related data is in. By default, Directus makes reading collections private and you will need to enable read permission for the tables you'd like to be able to read.
If you're making an unauthenticated request, and you're expecting to see files, you'll need to allow read access to
directus_files for the
public role. Be aware, this may allow advanced users to list all files.
I can't login to the demo
Occasionally people may login and change the passwords on these accounts, we're sorry about this, both of our demos reset each hour so if things look a little screwy, please just wait a bit
Can I extend the JWT token?
The JWT Token can't have it's length of validity modified if you need anything more than that, you can either refresh the token to get a new token, or you can utilise the Static tokens, however, static tokens are less secure.
How can I increase the 2MB limit on file uploads?
Directus pulls the file limit based on the upload limit that's configured for your PHP environment. The values you're looking for are
post_max_size. These can both be found in your
Will the bin scripts update all my projects?
bin/directus db:upgrade will only update your default
_ project. You will need to update your custom projects manually.
Does Directus handle deploying or migrating of content?
When you add data into a database, Directus does not provide any tool for you to migrate or deploy your data changes between different environments (ie. from development to production).
What SDKs are available for Directus?
Where's the PHP SDK?
Please see the above...
When using PHP, we recommend using Guzzle for the time-being and call the API directly.
Can't install the database on MariaDB
Some users have noted seeing the following error message:
not able to install database: ./directus install:database SQLSTATE: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
When you're using MariaDB, though it's based on the same source code as MySQL, there are subtle differences. Directus requires the use of the
utf8mb4 charset. MariaDB V10.2 or higher will be required for this to work.