hi! I see this issue when i'm trying to upload scr...
# announcements
e
hi! I see this issue when i'm trying to upload screen. Just design issue)) May be there is another place, where I can share this little bugs? or slack is good?
I also can't download screenshot. Format - PNG, size - 2.5 MB
f
slack or github is good
are there any messages in the console?
f
Is this self-hosted? And if so have you configured S3 or are you using the built-in file upload storage?
e
yes, its self-hosted
f
We recommend configuring S3 for file uploads, especially if you are dealing with large files. https://docs.growthbook.io/self-host/config#s3-file-uploads The built-in local storage doesn't work very well at scale.
1
e
guys, we've found an issue. GB asked for only lower letters extension.
{"status":400,"message":"Invalid image file type. Only png, jpg, jpeg, gif, svg accepted."}.
We tried to upload same file, but with big/small letters, and it worked only with lower letters
f
are you able to share a file that didn't work? (DM)
f
I can see the source of the error. We just need to lowercase the extension before checking against a safe list. Easy fix
Doing some quick testing to make sure I can reproduce the issue and then I'll push out a fix
Just committed a fix, new Docker image will be available in a few minutes. It now allows uppercase letters in the extension. Also, if you do try to upload something that's not allowed, it will now show a real error message instead of just failing silently in the UI.
1
e
@fresh-football-47124 I guess, problem solved, but I still can share file with you)