Replies: 1 comment 1 reply
-
hey @datta202 First, i trust you're already disabling the autoUpload param so user can choose/remove before committing to upload. As for your main question, Uploady's largest context is of a batch and therefore, there isnt a way to run once over all files that were added across multiple batches. I would need to investigate whether it would be possible to support this in the future, but since its hardly ever requested or typically needed, it will most likely remain low priority. But, I would like to understand why withBatchStartUpdate for example isn't suitable still for your purposes? What is it that you cannot accomplish with it together with some outside state to keep track of any cross-batch data? |
Beta Was this translation helpful? Give feedback.
-
Hello,
We want to modify the file metadata before the upload starts. Specifically, we need to modify the metadata for multiple batches of files.
Here’s how we envision the process:
We are uploading files directly to S3.
Currently, we cannot modify the file metadata in the useRequestPreSend hook. I am unsure whether withRequestPreSendUpdate or withBatchStartUpdate would be suitable, as they seem to support only single batches. We need a solution that works for multiple batches.
Could you please help or guide us on how to achieve this?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions