Table of contents
- How can I access tusd using HTTPS?
- Can I run tusd behind a reverse proxy?
- Can I run custom verification/authentication checks before an upload begins?
- I am getting TemporaryErrors (Lockfile created, but doesn’t exist)! What can I do?
- How can I prevent users from downloading the uploaded files?
- How can I keep the original filename for the uploads?
- Does tusd support Cross-Origin Resource Sharing (CORS)?
FAQ
How can I access tusd using HTTPS?
You can achieve this by either running tusd behind a TLS-terminating proxy (such as Nginx or Apache) or configuring tusd to serve HTTPS directly. Details on both approaches are given in the configuration guide.
Can I run tusd behind a reverse proxy?
Yes, it is absolutely possible to do so. Please consult the section about configuration regarding proxies.
Can I run custom verification/authentication checks before an upload begins?
Yes, this is made possible by the hook system inside the tusd binary. It enables custom routines to be executed when certain events occurs, such as a new upload being created which can be handled by the pre-create
hook. Inside the corresponding hook logic, you can run your own validations against the provided upload metadata to determine whether the action is actually allowed or should be rejected by tusd. Please have a look at the corresponding example for a more detailed explanation.
I am getting TemporaryErrors (Lockfile created, but doesn’t exist)! What can I do?
This error can occur when you are running tusd’s disk storage on a file system which does not support hard links. Please consult the local disk storage documentation for more details.
How can I prevent users from downloading the uploaded files?
Tusd allows any user to retrieve a previously uploaded file by issuing an HTTP GET request to the corresponding upload URL. This is possible as long as the uploaded files on the datastore have not been deleted or moved to another location. This can be completely disabled using the -disable-download
flag.
How can I keep the original filename for the uploads?
Tusd will generate a unique ID for every upload, e.g. 1881febb4343e9b806cad2e676989c0d
, which is also used as the filename for storing the upload. If you want to keep the original filename, e.g. my_image.png
, you will have to rename the uploaded file manually after the upload is completed. One can use the post-finish
hook to be notified once the upload is completed. The client must also be configured to add the filename to the upload’s metadata, which can be accessed inside the hooks and used for the renaming operation. Please have a look at the corresponding post-processing use case for a more detailed explanation.
Does tusd support Cross-Origin Resource Sharing (CORS)?
Yes, tusd does have built-in support for CORS, which can be fully customized.