Creating SignedURL for uploading multiple files

766 Views Asked by At

For now I'm able to create signed url for uploading file to gcp storage. Is it possible to create one signed url for many files? Below is Golang implementation for single file:

opts := &storage.SignedURLOptions{
    GoogleAccessID: googleCfg.Email,
    PrivateKey:     googleCfg.PrivateKey,
    Scheme:         storage.SigningSchemeV4,
    Method:         http.MethodPut,
    Expires:        time.Now().Add(168 * time.Hour),
    ContentType:    contentType,
}

url, err := storage.SignedURL(bucketName, folderName+filePath, opts)
if err != nil {
    return "", err
}
0

There are 0 best solutions below