Uppy Server: File uploaded callback

Started by goatandsheep8 replies2,131 views
goatandsheepOriginal post
#1

What is the callback that gets called when the file is fully uploaded to uppy server? I was struggling to use getData and getResponse.

goatandsheep
#2

Do I need to have a separate tus server? I don’t really understand…

ifedapoolarewaju
#3

@goatandsheep the callback that gets called where? On the server, or on the client?

goatandsheep
#4

The server. Upon upload to S3 we would like to run a callback to save metadata such as the filename and s3 url inside a mongodb instance

ifedapoolarewajuReplying to #4
#5

@goatandsheep AFAIK, uppy S3 upload is handled on the client. The server is only used to sign the request. Afterwards, everything else is handled on the client. This only the case for S3. As for Google drive, dropbox, and instagram, the upload happens on the server.

goatandsheep
#6

So if someone loses connection after it’s been uploaded to s3, it will be on our servers and we won’t even know?

ifedapoolarewajuReplying to #6
#7

@how do you mean? It would never be uploaded to your server in the first place. Perhaps I don’t fully understand the question.

goatandsheepReplying to #7
#8

Say someone has my page pre-cached and I have some server error that blocks the client from sending messages back to me. After they upload to S3 directly, how does the callback get back to me?