I have a vry simple question which i cannot figure out for a while.
I have simple setup of UPPY on front end and TUS-PHP on my backend on AWS EC2 free trier.
The issue is that backend upload.php does not get the custom meta information provided by uppy on upload. Meanwhile in devtools i can see the Upload-Metadata request headers/
This is a part of code how i send a custom data:
uppy.on('file-added', (file) => {
uppy.setFileMeta(file.id, {
relativePath: 'your/relative/path', // Set your custom relative path here
customField1: 'value1', // Set your custom field value here
customField2: 'value2' // Set your custom field value here
});
........
uppy.setFileMeta(file.id, {
relativePath: 'your/relative/path', // Set your custom relative path here
customField1: 'value1', // Set your custom field value here
customField2: 'value2' // Set your custom field value here
});
And this is headers im getting in my php (with getallheaders())
Array
(
[Host] => 54..***.***.174
[Connection] => keep-alive
[Content-Length] => 365387
[Tus-Resumable] => 1.0.0
[X-CSRF-TOKEN] => {{ csrf_token() }}
[Upload-Offset] => 0
[User-Agent] => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
[Content-Type] => application/offset+octet-stream
[Accept] => */*
[Origin] => http://54.***.***.174
[Referer] => http://54.***.***.174/
[Accept-Encoding] => gzip, deflate
[Accept-Language] => en-US,en;q=0.9,ru-RU;q=0.8,ru;q=0.7
)
Can you please suggest how can I solve this issue.
Thanks
Custom metadata (Upload-Metadata) is not being passed to TUS-PHP backend php file