Search
Setup for Free
S
Supabase
•
4y ago
rlee128
Access Object Size
Is there any way to access the storage object size that is being uploaded via RLS or a functions to restrict file sizes over a certain limit
?
Supabase
Join
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
44,410
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
G
garyaustin
•
9/20/22, 7:25 PM
Not on the server
. The storage
-api relies on s3 to error on large file
, and return the object size when it is stored successfully
.
You might be able to have a trigger on the update storage
-api does to the object table with the size
(after it has been stored to s3
) and do something to abort
, but you would need to look at this code in detail to see if it will delete the s3 data
.
.
.
.
https://github.com/supabase/storage-api/blob/master/src/routes/object/createObject.ts
GitHub
storage-api/createObject.ts at master · supabase/storage-api
A S3 compatible object storage service that integrates with Postgres and Gotrue
- storage
-api
/createObject
.ts at master
· supabase
/storage
-api
R
rlee128
OP
•
9/20/22, 8:05 PM
Thanks
Similar Threads
Is there any way to access auth object in postgres functions?
S
Supabase / help-and-questions
4y ago
How access the data as my query is returning just an object
S
Supabase / help-and-questions
4y ago
Resizing Compute Size
S
Supabase / help-and-questions
12mo ago
Database size limit
S
Supabase / help-and-questions
2y ago