-
Notifications
You must be signed in to change notification settings - Fork 477
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
Deleting .info files and moving uploaded file to another directory after upload complete #45
Comments
If you use tusd programmatically using it's Go API, you can listen on the
This will cause the
I guess, the best way to implement this is to move the files after they have been uploaded and not in the beginning. You can use the hooks system for this as described above. |
Thanks for the quick and detailed reply. hooks system will solve my problem and have gone through the hooks function. |
You can use the TusUpload upload = new TusUpload(/* ... */);
Map<String, String> meta = upload.getMetadata();
meta.put("client_id", "55");
upload.setMetadata(meta); This will then show up in the |
Thanks for the update. Hope this solves my problem. Will check and update |
The following code |
That's correct. It's not guaranteed that the object returned is not null. I will make sure to update the documentation to fix this. |
After successful upload, I need to move the uploaded file(.bin) to another directory and delete the .info file which is not need after that. Is there any call back function I can use to perform this operation.
And please let me know whether the following is feasible:
I have 'n' number of clients uploading files; I want to store the files in separate directory with respect to the client uploading it. This may be a feature of file server; but I foresee tus as a upload file server rather than just a uploading protocol.
The text was updated successfully, but these errors were encountered: