Skip to content

when uploading Storage.uid check problem #54

@honeyhead

Description

@honeyhead

image

image

There is a problem uploading the file.

First of all, I left the target role as anon while the user logged in.
(bucket_id = 'bucket-origin'::text)

If you set permissions on that bucket as above, you can register the file normally.

The problem is that I want to have a folder for each user's uid and upload a file.

((auth.uid())::text = (storage.foldername(name))[0]))

Common sense is that I tried bringing both [0]th and [1]th, but I couldn't bring anything in.

((auth.uid())::text = 'e6074db4-7957-4aa6-9730-f4f1c2efcca8'::text)

Can you tell me what the problem is because I can't check it even if I give it to you manually?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions