File Uploads
#
RequirementsIn order to upload files you have to have an active subscription for your user. Read the subscriptions page on instructions how to setup a subscription for yourself.
#
Troubleshooting#
Files Server URLIn your .env
file the environment variable FILES_SERVER_URL
has to be set to a publicly accessible url. The reason for that is that the clients are accessing the Files Server directly instead of via Api Gateway. Remember that if you are hosting your standalone instance on an external server then localhost
is not the host that properly describes where the files server resides.
#
Upload directory write permissionsThe default upload directory is located inside the standalone folder under data/uploads
. Depending on the running OS, you might encounter write permissions to that folder by the application. In that case the following commands might help:
#
Limiting Storage QuotaIf you would like to limit the file upload quota for your user then make sure to run the following query on your database:
Note that this is setting the limit to 10GB (10737418240 bytes) for user with email EMAIL@ADDR
#
CloudFlare Missing HeadersWhen using CloudFlare in conjuction with Nginx you might encounter an issue about missing Accept-Ranges
header which is required for file downloading. As a fix please add this to your Nginx configuration: