please remove also the revokeObjectUrl part that is later in the same function