-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Unicode Upload from Liveview Upload? #2
Invalid Unicode Upload from Liveview Upload? #2
Comments
interesting... |
i'll try to reproduce that and do some debugging. thank you for reporting that |
@zoedsoupe it's caused by this line in the potion fetcher: https://github.com/supabase-community/supabase-ex/blob/b7bfe786a62f9a0ac1b5676ea4f1aa390116818b/lib/supabase/fetcher.ex#L241 I removed the utf8 encoding in a fork and uploads work for other content types: https://github.com/slexysex/supabase-ex Unsure if this breaks other functionality as I am only using the storage api |
firstly, thank you for investigating this issue, secondly, sorry for the delay in the response, i've got very busy last year and also had some time to finally transfer the libraries under the since last month i got active again and started to solve issues and implementing missing features. so i'll open a pr in the |
Fixed by the |
I'm attempting to upload a file to supabase with this but I'm getting :invalid_unicode during streaming errors. I've tried with different mp3 files, and still :invalid_unicode.
Here's what the path of an object looks like ""/tmp/plug-1729-wEti/live_view_upload-1729464552-93643243762403-4" -- if I add .mp3 ofter that it won't find the file.
I've tried expanding the path, passing through the file_content instead of the file path, reversing the "1.mp3" with the path in terms of parameter order -- nothing seems to work here.
Client works great. Bucket I use list_buckets() and search for one by name to get the bucket object.
Any ideas?
The text was updated successfully, but these errors were encountered: