Media link problem ?

General questions relating to Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
Slushgood
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 140
Joined: Tue Sep 22, 2015 1:04 pm
Location: St palais sur mer, France

Media link problem ?

Post by Slushgood » Wed Aug 17, 2022 6:08 am

Hello,
Is there a problem with setting file and image media links in Joomla 4? Regardless of the setting, it systematically points to the joomla "images" folder. For my component even by putting a directory= it does not work. Thank you for your lights
Last edited by toivo on Sat Aug 20, 2022 9:47 pm, edited 1 time in total.
Reason: mod note: moved, not related to 4.x Coding

Slushgood
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 140
Joined: Tue Sep 22, 2015 1:04 pm
Location: St palais sur mer, France

Re: Media link problem ?

Post by Slushgood » Wed Aug 17, 2022 9:09 am

OK, There seems to be a problem with Joomla's mediaField. I fixed the problem by creating my own FavmediaField. The problem is that I have a message:
accountpb.jpg
You do not have the required permissions to view the files attached to this post.

Slushgood
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 140
Joined: Tue Sep 22, 2015 1:04 pm
Location: St palais sur mer, France

Re: Media link problem ?

Post by Slushgood » Wed Aug 17, 2022 9:50 am

I just found the solution:
In the created field
directory = "local-media:/" in front of the folder path
if this one is in picture
"local-images:/"

Slushgood
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 140
Joined: Tue Sep 22, 2015 1:04 pm
Location: St palais sur mer, France

Re: Media link problem ?

Post by Slushgood » Wed Aug 17, 2022 9:54 am

But another problem ! I can watch .ico or .svg in folder. And i can't transfer some


Locked

Return to “General Questions/New to Joomla! 4.x”