Dynamic sender
#757
Replies: 1 comment
-
import { send } from "@rpldy/sender";
...
return {
options: {
send,
destination: {
url: "...",
},
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
maxsalven
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A user can select multiple files to upload.
Our system needs to upload video files via
tus
to endpointA, and any other files via regularxhr
to endpointB.I understand how to use
useRequestPreSend
to return a customoptions.destination.url
for a specific file type, but am not sure how to dynamically configure which sender to use?Beta Was this translation helpful? Give feedback.
All reactions