Pass metadata to backend
See original GitHub issue@goto-bus-stop Hello, how can I pass meta data information to backend tus node server through uppy tus endpoint ? I want to get that information on my backend server such as file original name, mime type and size so I can rename the file to its original name or whatever filename is set in metaField option in uppy.
On my backend, I get only file id, name (encoded), type (encoded).
server.on(EVENTS.EVENT_UPLOAD_COMPLETE, (event) => { console.log(`Upload complete for file ${event.file.id}`); });
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (6 by maintainers)
Top Results From Across the Web
Understand How Metadata Works in User Profiles - Auth0
Describes Auth0 user, application, and client metadata. Learn how you can use metadata to store information that does not originate from an identity ......
Read more >How do I upload a file with metadata using a REST web service?
To create the metadata entry and return a response like: ... say, compute the target dir/filename based on json metadata passed along the...
Read more >[LLVMdev] LLVM Metadata from Pass to Backend optimization
[LLVMdev] LLVM Metadata from Pass to Backend optimization ... Metadata structure to pass the data from the Analysis > Pass to the Back...
Read more >[llvm-dev] How to pass custom metadata from IR module pass ...
Ideally I would want to attach some metadata to a IR instruction, and have it be accessible when I perform a backend MF...
Read more >MetaData Encryption - Passbase Docs
After encrypting the data in your backend, you will need to pass the private key encoded in base64 to Passbase through the client-side...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I suggested decoding the upload_metadata property, not the name 😃
Uppy does not have additional requirements beyond what tus-js-client has.
As I understand it the HEAD 404 response is expected when you move the file, and should not affect the upload further.
It looks like you were overriding the
/upload/files/:fileId
route from the tus node server, which may be why you get the error aboutUpload-Offset
. I think that is also why it works correctly when you remove that route, you’re probably not supposed to override it.I’m a bit lost—it seems like the problem is no longer with reading metadata on the server is it? I’m struggling to piece together what is going wrong / unexpected from the comments so far.
Ok, since tus-js-client does not do GET requests, this might be caused by Uppy but I cannot help there much 😃