Skip to content

Commit

Permalink
Update upload_dispatcher.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Nov 21, 2024
1 parent 2c896a3 commit 03b977d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/ardrive_uploader/lib/src/upload_dispatcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ class UploadDispatcher {
}) async {
try {
if (task is FileUploadTask) {
logger.d('Preparing data items for file ${task.file.name}...');

controller.updateProgress(
task: task.copyWith(
status: UploadStatus.creatingMetadata,
),
);

final uploadPreparation = await prepareDataItems(
file: task.file,
metadata: task.metadata,
Expand Down

0 comments on commit 03b977d

Please sign in to comment.