Hello
I have installed the VideoJS plugin and when I try to upload a mp4 file I get
Error: Invalid file extension: 7a6c347d-56f9-496f-a8c5-fb4f223ec265.mp4
Piwigo 12.2.0 Check for upgrade
Operating system: Linux
PHP: 7.4.3 (Show info) [2022-03-27 14:18:32]
MySQL: 8.0.28-0ubuntu0.20.04.3 [2022-03-27 07:18:32]
Graphics Library: ImageMagick 6.9.10-23
Cache size 901.70 MB calculated right now
Piwigo URL: https://ourlifeinpixs.com
Offline
You may have to add this to your local config:
// file_ext : file extensions (case sensitive) authorized $conf['file_ext'] = array_merge( $conf['picture_ext'], array('tiff', 'tif', 'mpg','zip','avi','mp3','ogg','pdf','mp4','MP4','AVI') );
Offline
What is the name of the Config file and where is it located please, and also in what section of the config file
Thanks
Keith
Offline
local/config/config.inc.php you'll have to create if it doesn't exist yet and don't forget the <?php and ?> markers at begin and end of file. Use [extension by Piwigo Team] LocalFiles Editor if you don't know how.
Offline
Thanks I did not know that, would have opened up another question lol
Keith
Offline
Ok this is my local/config/config.inc.php
<?php
// file_ext : file extensions (case sensitive) authorized
$conf['file_ext'] = array_merge(
$conf['picture_ext'],
array('tiff', 'tif', 'mpg','zip','avi','mp3','ogg','pdf','mp4','MP4','AVI')
);
?>
I noticed the Web Form Add Photos show this
Select files
Add Photos
Allowed file types: jpg, jpeg, png, gif.
no mention of the video suffixes and I still get this eror
Error: Invalid file extension: 7a6c347d-56f9-496f-a8c5-fb4f223ec265.mp4
I did restart apache after adding the config file
Environment
Piwigo 12.2.0 Check for upgrade
Operating system: Linux
PHP: 7.4.3 (Show info) [2022-03-30 22:17:08]
MySQL: 8.0.28-0ubuntu0.20.04.3 [2022-03-30 15:17:08]
Graphics Library: ImageMagick 6.9.10-23
Cache size 1028.59 Mo calculated 7 seconds ago Refresh
Activated plugin list 3
Admin Tools
GuestBook
VideoJS
Keith
Offline
Sigh.. this may be needed as well in the local config:
// in the upload form, let users upload only picture_exts or all file_exts? // for some file types, Piwigo will try to generate a pwg_representative // (TIFF, videos, PDF) $conf['upload_form_all_types'] = true;
Offline