File size: 485 Bytes
8f715b7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from upload_to_supabase import upload_file_to_bucket
import os
from dotenv import load_dotenv

load_dotenv()

# Placeholder - Replace with your actual bucket name
BUCKET_NAME = "test-bucket" 

local_file = "test_upload.txt"
dest_path = "test_upload.txt"

print(f"Attempting to upload {local_file} to bucket '{BUCKET_NAME}'...")
result = upload_file_to_bucket(BUCKET_NAME, local_file, dest_path)

if result:
    print("Upload initiated successfully.")
else:
    print("Upload failed.")