-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing GCS/S3 prefix with pre-create. #488
Comments
No, this is unfortunately currently not possible. The prefix (or destination path) cannot be influenced by the pre-create hook (for any kind of storage inside tusd). We are considering adding such a functionality in the future since some people ask for it, but we have no plans for that in the near future. |
I can see how this would be useful but we still do not have any plans to implement this on our own. We are open to PRs but this is not priority. If you want a per-upload prefix for the objects on GCS/S3, you can rename/move the object on the cloud storage once the upload is completed. |
possibly fix for tus#488 - bumped alpine runtime in dockerfile - get rid of [unmaintained](bmizerany/pat#17) routing library bmizerany/pat - fixed CORS request test (status must be just 404, not 405, consequences of bmizerany/pat)
Question
Is it possible to decide a prefix for a file on the pre-create hook?
Using Uppy.js with tusd docker containers to upload to Google Storage or S3.
Trying to save files into a structure like:
<bucket>/<uuid>/<file>
Setup details
Please provide following details, if applicable to your situation:
The text was updated successfully, but these errors were encountered: