You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: upload.go
    path of file: ./repos/ponzu/system/db
    
    the code of the file until where you have to start completion: package db

import (
	"bytes
    
func UploadAll() [][]byte {
	var uploads [][]byte
	err := store.View(func(tx *bolt.Tx) error {
		b := tx.Bucket([]byte("__uploads"))
		if b == nil {
			return bolt.ErrBucketNotFound
		}

		numKeys := b.Stats().KeyN
		uploads = make([][]byte, 0, numKeys)

		return b.ForEach(func(k, v []byte) error {
			uploads = append(uploads, v)
			return nil
		})
	})
	if err != nil {
		log.Println("Error in UploadAll:", err)
		return nil
	}

	return uploads
}