GDG
Uploading font files .ttf and .otf
Well, this is local right now running on Herd. I could deploy tomorrow to my actual server and test there but not sure that that will make a difference in all honesty. Did you attempt to replicate the error? Not expecting you to try btw, I appreciate all of your help so far but was just wondering if you had tried on your side.
38 replies
Uploading font files .ttf and .otf
Nope. It immediately errors out as File of Invalid Type in FileUpload and then if I remove all acceptedFileTypes it allows (appears to) the upload but nothing gets added to temporary and upon save, the FileUpload is empty, nothing gets passed to the database and nothing gets uploaded.
Everything is standard.
Forms\Components\FileUpload::make('header_font_file')->directory('fonts')->visibility('public')->acceptedFileTypes(['application/x-font-ttf', 'font/ttf', '.ttf'])
38 replies