feat: Add tag parameter to file upload and resource creation functions

This commit is contained in:
2025-11-22 20:42:50 +08:00
parent e04fd8ceb1
commit b794d4cc96
2 changed files with 3 additions and 0 deletions

View File

@@ -201,6 +201,7 @@ class UploadingManager extends Listenable {
resourceID: number, resourceID: number,
storageID: number, storageID: number,
description: string, description: string,
tag: string,
onFinished: () => void, onFinished: () => void,
): Promise<Response<void>> { ): Promise<Response<void>> {
const res = await network.initFileUpload( const res = await network.initFileUpload(
@@ -209,6 +210,7 @@ class UploadingManager extends Listenable {
file.size, file.size,
resourceID, resourceID,
storageID, storageID,
tag,
); );
if (!res.success) { if (!res.success) {
return { return {

View File

@@ -1112,6 +1112,7 @@ function CreateFileDialog({ resourceId }: { resourceId: number }) {
resourceId, resourceId,
storage.id, storage.id,
description, description,
tag,
() => { () => {
if (mounted.current) { if (mounted.current) {
reload(); reload();