https://supabase.com/ logo
Join Discord
Powered by
# help
  • f

    ferminrp

    10/25/2021, 11:43 PM
    quick question, is it possible to give insert access to anyone but not read access?
  • f

    ferminrp

    10/25/2021, 11:44 PM
    I created this policy but it isnt working
    Copy code
    CREATE POLICY "enabling_insert_access"
    ON public.usuarios
    FOR INSERT WITH CHECK (
      true
    );
  • g

    garyaustin

    10/26/2021, 12:13 AM
    Make sure you have insert with returning set to minimum or the insert does a read. At least in JS.
    f
    • 2
    • 10
  • f

    ferminrp

    10/26/2021, 12:52 AM
    inser policy
  • v

    VuNguyen

    10/26/2021, 1:57 AM
    Enum
    s
    h
    • 3
    • 14
  • e

    erinstearns

    10/26/2021, 3:49 AM
    Hi all- getting this error when i try to add a number to the cell. Not sure if this is a bug or my own error, but I cant seem to get the column to just accept the number. Already tried setting the column as text, int, varchar, float etc. Getting an error on every one. It was working fine before and now its not. https://prnt.sc/1xb350q
  • j

    jason-lynx

    10/26/2021, 4:16 AM
    could it be another column that's contributing to the error?
  • m

    MrDizzystick

    10/26/2021, 6:18 AM
    I think you can do something like this:
    Copy code
    js
    const { data, error } = await supabase
      .from('movies')
      .select('title, release_date')
      .gte('release_date', '2000-01-01')
      .lte('release_date', '2020-01-01')
  • b

    bokolesnik

    10/26/2021, 8:28 AM
    does supabase is up?
  • b

    bokolesnik

    10/26/2021, 8:45 AM
    Got
    { message: 'The upstream server is timing out' }
  • h

    HarryET

    10/26/2021, 9:04 AM
    Hey! Supabase dosen't support that. What platform are you working with? If its mobile you could implement it client side 🙂
  • h

    HarryET

    10/26/2021, 9:04 AM
    Looks like its online too me
  • h

    HarryET

    10/26/2021, 9:04 AM
    is your project URL correct for your client?
  • h

    HarryET

    10/26/2021, 9:05 AM
    Are you just adding a constant number to each column or adding 2 columns together?
  • h

    HarryET

    10/26/2021, 9:06 AM
    also it shouldn't be varchar it should be a float or double afaik
  • b

    bokolesnik

    10/26/2021, 9:15 AM
    worked for a while so far
  • h

    HarryET

    10/26/2021, 9:16 AM
    Is it working again now?
  • b

    bokolesnik

    10/26/2021, 9:46 AM
    as it should 💯
  • b

    bh

    10/26/2021, 9:46 AM
    I tried to host a static privacy policy html file on Storage (public bucket) - but when I access the URL from a browser, it render the source code
    h
    • 2
    • 7
  • h

    HarryET

    10/26/2021, 9:46 AM
    I think you would need an endpoint with somthing like cloudflare workers, vercel/next.js to download the content and send it with the html mime type
  • b

    bh

    10/26/2021, 9:47 AM
    On Amazon S3 you can host static html - is this intentionally disabled on Supabase Storage
  • h

    HarryET

    10/26/2021, 9:48 AM
    Can you send me the link?
  • h

    HarryET

    10/26/2021, 9:48 AM
    in DMs if you want?
  • b

    bh

    10/26/2021, 9:48 AM
    https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html
  • b

    bh

    10/26/2021, 9:48 AM
    https://rcymrjihsztzenrgtqfb.supabase.in/storage/v1/object/public/html/privacy-policy.html
  • h

    HarryET

    10/26/2021, 9:49 AM
    Yeah look, its being sent as text/plain
  • h

    HarryET

    10/26/2021, 9:50 AM
    Supabase Server Static HTML
  • h

    HarryET

    10/26/2021, 10:32 AM
    Custom Image CDN
    s
    • 2
    • 24
  • c

    chipilov

    10/26/2021, 11:27 AM
    Change the schema exposed via PostgREST
    h
    • 2
    • 6
  • s

    swiss

    10/26/2021, 2:08 PM
    That's what I was thinking but didn't know what ltRange and gtRange were or how they work and was thinking of using those. Thanks!
1...118119120...316Latest