-
"Is there a way to call an API only once to obtain external IDs for multiple files before upload? For instance, if I select 100 files and need their respective external IDs in one go, such as:
I found this hook So how can I achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @datta202 But, it sounds a bit strange that you need to get the IDs on the client from the server before uploading to the server. It sounds like something the Server should assign when its receiving the files. In any case, it indeed doesnt make sense to call N times for N files being uploaded. Your server should be able to return multiple IDs based on the number of files about to be uploaded. But again, I'd try to solve it at upload instead. |
Beta Was this translation helpful? Give feedback.
Hi @yoavniran, I managed to fix this problem by using
withBatchStartUpdate
and react hooks