Skip to main content

useItemFinishListener

Package​

@rpldy/uploady

Installation​

npm install @rpldy/uploady

Details​

type useItemFinishListener = ItemEventHook;
note

Event Hook - ITEM-FINISH

Called when item finished uploading

info

This event can be scoped to a specific item by passing the item id as a second parameter

Example​

import { useItemFinishListener } from "@rpldy/uploady";

const MyComponent = () => {
useItemFinishListener((item, options) => {
console.log(`item ${item.id} finished uploading, response was: `, item.uploadResponse, item.uploadStatus);
});

//...
};