-
Notifications
You must be signed in to change notification settings - Fork 203
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
Sending extra data with the response #422
Comments
Hi, could you be more specific? Do you mean headers? Alter the body of the request? |
I think it's really needed too right now after the upload is finished on the front side how we should pass front some data to continue the chain of progress? for example, imagine having a website for transcoding movies when a user upload file i want to return back file id which is stored in the database so it can continue the chain of progress. i think must add a way to pass some data after the upload is finished to the front |
There are currently discussions in tusd for a similar feature, being able to change the metadata: tus/tusd#814. Would be nice to align on a solution together with tusd. |
Hey, is this feature already implemented or there is a way (I can't find it) to add some meta information to the P.S. Sorry for commenting on a closed issue, but there is no additional comment why it's closed 😄 P.P.S. I just add a custom header to the response, which js clients can use to get information, but I think it's the hacky way. |
@ggagosh I closed it since I moved away from tus to something that better fits my needs |
I still want to implement this for the I'm not sure yet what we can/want to allow for |
@Murderlon but why? For example, when As I mention I set the custom header and return created |
At the time of |
Hi, I'll just interject to give my answer to your question @Murderlon, which is that I want to be able to add some info that comes from the server to the metadata-object that the server returns to the client. Like you said I could simply send the additional data along as a response-header but like @ggagosh said that feels a bit hacky |
What's the best way to append some data to the response sent to the user once an upload finishes?
I'd like to append extra data to the response sent to the user on
onUploadFinish
but I'm not sure how to do so. I'm using Uppy core with TUS as the uploader and everything I tried so far to append data to the body has been unsuccessful.Any tips?
The text was updated successfully, but these errors were encountered: