-
Hi again @yoavniran . This question is related to this. im wondering if it's possible to implement a custom sender because each of these imports has different API endpoints and requires different parameters to be sent to the server. i also found this discussion here , and it seems to be related to what im trying to understand. i would greatly appreciate it if you could let me know if customization is possible. thank you for creating this fantastic library. and, please feel free to request any additional information if needed, English is not my native language but i will try my best to explain things 🙂. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
hey @ted-dino thanks! I'm not sure you need a custom sender. Unless those uploads dont use conventional http endpoints to receive the files or in case you need to leverage a 3rd party sdk. Meaning, you should be able to configure the upload by leveraging properties (ex: params, sendWithFormData, method) and if needed, the preSendRequest (event, hook) Please expand a little more on what it is that you actually need to customize and we'll see what will be the best solution. If you know you need a custom sender, you can look at a few existing implementation such as:
To get a better sense of what's required by implementing a new sender. |
Beta Was this translation helpful? Give feedback.
-
Hello @yoavniran, I wanted to share the endpoints for reference For importing orthophotos:
For importing point clouds:
I hope this information is helpful. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Hi @yoavniran, its me again. i followed your suggestion but now my problem is the events hooks are not firing. i also updated the package to version 1.6.0. here is my code.
here is my sample code |
Beta Was this translation helpful? Give feedback.
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:
The other components like the upload-drop-zone support the same props.
If you wish to use your own components, …