-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Uppy / Tus - Tus options not working when passing into Uppy #1327
Comments
I tried this using react context instead of initialising the way I did before. The same problem occurred. The Tus options still did not initialise properly. |
I think there are two possible causes here. One is a small issue with the
That is something that could use a tweak in tus-js-client. The other possible cause is that we also implement something similar to tus-js-client's Could either of those be the situation you ran into as well, or is there something more going on? |
Hi, thank you for your reply. I don't think either of those situations are relevant. The first, I haven't changed the removeFingerprintOnSuccess to from false to true in 10 days. It remains false through 300+ react page refreshes. As for the second issue, I just checked, I uploaded an audio. Completed the upload and then refreshed the page. Waited a bit and tried to upload the same audio file. A new file was not uploaded. |
Maybe I am not understanding removeFingerprintOnSuccess. Help me clarify this for a second. After I upload a file using Uppy, Uppy generates a unique fileId e.g. uppy-audiomp3-audio/mp3-203517-1548328168000. I then use this as the key for a list of files that I am/have uploaded and loop through these elsewhere in my app. As I upload the same file again, Uppy creates the exact same key uppy-audiomp3-audio/mp3-203517-1548328168000, however a new file actually appears on the server, not the same initial one. Perhaps this is the intended behaviour. I thought that Uppy would give me another uniqueId on the client side before uploading the file to the server? This obviously creates a typical unique key error. Is this how Uppy should work with the id? |
That being said, the Tus onSuccess callback does not fire still.
|
@goto-bus-stop any suggestions? |
sorry for leaving this hanging 😞 We should fix this in the tus documentation. The Tus plugin doesn't actually have |
Add the options as follows:
remove all the files from |
When I pass Tus options into Uppy, they're not working. I am initialising Tus in react like this:
I am not sure what I am doing wrong, however when uploading a previously uploaded file, it will not create a new upload. Any suggestions as to why this is not working and how I can pass these options in?
Btw I am initialising Uppy / Tus like this #1329 (comment)
The text was updated successfully, but these errors were encountered: