?
avatar Codereamp
Codereamp
16 Jul 2018

Steps to reproduce the issue

  • Make sure video files can be uploaded (legal extensions, MIME times). Let's the media folder is www.mysite/media
  • Create any sub-folder in main Media folder (for example 'myvideos')
  • Upload a video to this new folder, so the correct location is www.mysite/media/myvideo/myvideo.mp4.
  • Hover the mouse, notice that the lacking sub-folder part (www.mysite/media/myvideo.mp4)
  • Try to click the preview link, get the error about file not existing or not supported format.

Expected result

Actual result

System information (as much as possible)

Additional comments

The bug is easily fixed by correcting the file
\administrator\components\com_media\views\medialist\tmpl\thumbs_videos.php
by replacing
<a class="video-preview" href="<?php echo COM_MEDIA_BASEURL, '/', rawurlencode($video->name);
with
<a class="video-preview" href="<?php echo COM_MEDIA_BASEURL, '/', rawurlencode($video->path_relative);

path_relative is used by the image link machinery, but mistakenly missed here with videos.

avatar Codereamp Codereamp - open - 16 Jul 2018
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Jul 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Jul 2018
Category Administration com_media Administration
avatar tonypartridge
tonypartridge - comment - 17 Jul 2018

Can you do a PR please? I’ve noticed it too.

avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Jul 2018
Status New Information Required
avatar Codereamp
Codereamp - comment - 17 Jul 2018

I see a new status "Information Required". Is addition information required from the issue creator?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21145.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Jul 2018

@Codereamp no addition Information required.

The Status was for me that there is an Question (by @tonypartridge) unanswered.

avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Jul 2018
Status Information Required Discussion
avatar wojsmol
wojsmol - comment - 17 Jul 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Jul 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-07-17 10:29:16
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jul 2018
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 17 Jul 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 17 Jul 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Jul 2018

closed as having Pull Request #21156

Add a Comment

Login with GitHub to post a comment