Announcement

#1 2022-03-27 16:24:59

kdmiller45
Member
Phoenix
2018-07-16
67

Video file not excepted

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

 

#2 2022-03-27 23:58:35

erAck
Only trying to help
2015-09-06
2021

Re: Video file not excepted

You may have to add this to your local config:

Code:

// 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')
  );

Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2022-03-30 13:22:33

kdmiller45
Member
Phoenix
2018-07-16
67

Re: Video file not excepted

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

 

#4 2022-03-30 17:05:04

erAck
Only trying to help
2015-09-06
2021

Re: Video file not excepted

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.


Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2022-03-30 23:30:34

kdmiller45
Member
Phoenix
2018-07-16
67

Re: Video file not excepted

Thanks I did  not know that, would have opened up another question lol

Keith

Offline

 

#6 2022-03-31 00:17:58

kdmiller45
Member
Phoenix
2018-07-16
67

Re: Video file not excepted

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

 

#7 2022-03-31 02:24:58

erAck
Only trying to help
2015-09-06
2021

Re: Video file not excepted

Sigh.. this may be needed as well in the local config:

Code:

// 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;

Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact