Media Library Issues.

When I upload the images. they are in the storage folder. But the Media Library is looking for them in the /img folder. I go to the /img in the browser and it's giving me a php error about being required once. But when i switch the url to /storage. it shows the image. I have been stuck ion this for days. It should be so simple to fix!
Chatgpt tells me to fix my twill.php (doesn't work) tells me to update syslink (doesn't work) I can't find the vue files on my machine anywhere to update the view manually. And the documentation for the media library section is 1 paragraph.
4 Replies
ifox
ifox3w ago
Hi. What a nice way to ask for support. I suggest you calm down and avoid speaking like that if you're looking for help. By default, Twill renders images dynamically using Glide, which requires certain PHP extensions. instead of staying stuck for days, be polite and ask for support straight away, or just do a search here or on GitHub, this topic has been discussed many times
Noximus
NoximusOP3w ago
I'm sorry, I have been seaching for the info everywhere and nothing seems to work for me.
ifox
ifox3w ago
What is the error you are getting exactly?
Noximus
NoximusOP3w ago
Solved. I just needed a place to vent. Sorry if you took my freak out personal. Yelling and screaming is not directed towards anyone!
I added this. $%^#$%^&$%^$%^#%$ to myself.
x'media_library' => [

'disk' => 'twill_media_library',

'endpoint_type' => env('MEDIA_LIBRARY_ENDPOINT_TYPE', 'local'),

'cascade_delete' => env('MEDIA_LIBRARY_CASCADE_DELETE', false),

'local_path' => env('MEDIA_LIBRARY_LOCAL_PATH', 'uploads'),

'image_service' => env('MEDIA_LIBRARY_IMAGE_SERVICE', 'A17\Twill\Services\MediaLibrary\Glide'),

'acl' => env('MEDIA_LIBRARY_ACL', 'private'),

'filesize_limit' => env('MEDIA_LIBRARY_FILESIZE_LIMIT', 50),

'allowed_extensions' => ['svg', 'jpg', 'gif', 'png', 'jpeg'],

'init_alt_text_from_filename' => true,

'prefix_uuid_with_local_path' => config('twill.file_library.prefix_uuid_with_local_path', false),

'translated_form_fields' => false,

'show_file_name' => false,

'media_caption_use_wysiwyg' => false,

'media_caption_wysiwyg_options' => [

'modules' => [

'toolbar' => [

'bold',

'italic',

],

],

],

],
x'media_library' => [

'disk' => 'twill_media_library',

'endpoint_type' => env('MEDIA_LIBRARY_ENDPOINT_TYPE', 'local'),

'cascade_delete' => env('MEDIA_LIBRARY_CASCADE_DELETE', false),

'local_path' => env('MEDIA_LIBRARY_LOCAL_PATH', 'uploads'),

'image_service' => env('MEDIA_LIBRARY_IMAGE_SERVICE', 'A17\Twill\Services\MediaLibrary\Glide'),

'acl' => env('MEDIA_LIBRARY_ACL', 'private'),

'filesize_limit' => env('MEDIA_LIBRARY_FILESIZE_LIMIT', 50),

'allowed_extensions' => ['svg', 'jpg', 'gif', 'png', 'jpeg'],

'init_alt_text_from_filename' => true,

'prefix_uuid_with_local_path' => config('twill.file_library.prefix_uuid_with_local_path', false),

'translated_form_fields' => false,

'show_file_name' => false,

'media_caption_use_wysiwyg' => false,

'media_caption_wysiwyg_options' => [

'modules' => [

'toolbar' => [

'bold',

'italic',

],

],

],

],

Did you find this page helpful?