https://www.growthbook.io/ logo
#announcements
Title
# announcements
e

eager-camera-84109

03/14/2022, 10:47 AM
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

fresh-football-47124

03/14/2022, 12:19 PM
slack or github is good
are there any messages in the console?
f

future-teacher-7046

03/14/2022, 12:35 PM
Is this self-hosted? And if so have you configured S3 or are you using the built-in file upload storage?
e

eager-camera-84109

03/14/2022, 1:24 PM
yes, its self-hosted
f

future-teacher-7046

03/14/2022, 1:30 PM
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

eager-camera-84109

03/14/2022, 3:57 PM
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

fresh-football-47124

03/14/2022, 4:09 PM
are you able to share a file that didn't work? (DM)
f

future-teacher-7046

03/14/2022, 4:10 PM
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

eager-camera-84109

03/15/2022, 9:04 AM
@fresh-football-47124 I guess, problem solved, but I still can share file with you)
9 Views