Skip to content

Custom sender #617

Answered by yoavniran
ted-dino asked this question in Q&A
Oct 31, 2023 · 3 comments · 4 replies
Discussion options

You must be logged in to vote

Based on this, it seems like a custom sender is definitely an overkill.

A simpler solution would be to customize the upload with the upload button props. Notice that it accepts most of the Uploady provider props.

So you can have:

import UploadButton from "@rpldy/upload-button"

 <label>Upload Orthophotos</label>
 <UploadButton destination={{ url: "<API_URL>/project/geotiff", params: { project_id: "<PROJECT_ID>" } }} />

 <label>Upload Point Clouds</label>
 <UploadButton destination={{ url: "<API_URL>/project/create", params: { project_id: "<PROJECT_ID>", name: "...", ... } }} />

The other components like the upload-drop-zone support the same props.

If you wish to use your own components, …

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@yoavniran
Comment options

Answer selected by ted-dino
@ted-dino
Comment options

Comment options

You must be logged in to vote
2 replies
@ted-dino
Comment options

@yoavniran
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants