File f=new File("a.png");
System.out.println("success");
bot.getGroup(Qq).getFilesRoot().uploadAndSend(f);

java.lang.IllegalStateException: Failed to upload file.
at net.mamoe.mirai.internal.utils.RemoteFileImpl.upload(RemoteFileImpl.kt:521)
at net.mamoe.mirai.utils.RemoteFile.upload(RemoteFile.kt:432)
at net.mamoe.mirai.internal.utils.RemoteFileImpl.uploadAndSend(RemoteFileImpl.kt:528)
at net.mamoe.mirai.utils.RemoteFile.uploadAndSend(RemoteFile.kt:463)
at net.mamoe.mirai.utils.RemoteFile$$uploadAndSend$$bb$DonD5rU.invoke(Unknown Source)
at kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt$createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$IntrinsicsKt__IntrinsicsJvmKt$1.invokeSuspend(IntrinsicsJvm.kt:205)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlin.coroutines.ContinuationKt.startCoroutine(Continuation.kt:115)
at net.mamoe.kjbb.internal.RunBlockingKt.$runSuspend$(RunBlocking.kt:18)
at net.mamoe.mirai.utils.RemoteFile.uploadAndSend(RemoteFile.kt)
at org.example.mirai.WithConfiguration1.wget(JavaMain.java:342)
at org.example.mirai.WithConfiguration1.lambda$main$4(JavaMain.java:563)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:511)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:60)
at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:46)
at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:38)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)