Announcement

#1 2016-02-11 15:34:09

Genusstaucher
Member
2016-02-05
9

PIWIGO 2.7.0 - Upload of more / all file formats

Hello togehther :)

For the update to 2.7 you wrote:

Advanced feature : now you can upload any file type. In your local configuration, set conf['upload_form_all_types'] = true; and Piwigo will let you upload any file matching $conf['file_ext'].

Where do I find this file / this configuration? In which folder/file? On the Admin site I don't find anything. I want to change it, because I want to upload pdf's (and: if I found a solution for the thumbnails, but thats another thing...)

I only get failures when I want to upload pdf's via piwigo admin site.

Thank You for working on it! :)
Joachim Müller
Backnang

Piwigo version: 2.7.4
PHP version: 5.6.17
MySQL version: 5.5.38.1
Piwigo URL: http://www.jmweb.de/fotos/piwigo/index.php?/

Offline

 

#2 2016-02-11 16:28:40

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: PIWIGO 2.7.0 - Upload of more / all file formats

Hi Genusstaucher,

Can you copy here your local config?

On you Piwigo administration home, can you tell us which graphic library you use?

Offline

 

#3 2016-02-11 18:32:36

Genusstaucher
Member
2016-02-05
9

Re: PIWIGO 2.7.0 - Upload of more / all file formats

Hello :)

Where can I see my configuration exactly? Where have I to cklick? This is my home of my admin config:

Offline

 

#4 2016-02-11 18:33:47

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: PIWIGO 2.7.0 - Upload of more / all file formats

Activate plugin LocalFiles Editor, then go on [Administration > Plugins > LocalFiles Editor > local config]

Offline

 

#5 2016-02-11 18:54:54

Genusstaucher
Member
2016-02-05
9

Re: PIWIGO 2.7.0 - Upload of more / all file formats

OK. Local? It is emty... I fear, that is the problem??? :)

Offline

 

#6 2016-02-11 19:15:23

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: PIWIGO 2.7.0 - Upload of more / all file formats

OK, you have no local config. In the field, you need this:

Code:

<?php
$conf['file_ext'] = array_merge(
  $conf['picture_ext'],
  array('pdf')
  );

$conf['upload_form_all_types'] = true;
?>

Offline

 

#7 2016-02-11 19:45:46

Genusstaucher
Member
2016-02-05
9

Re: PIWIGO 2.7.0 - Upload of more / all file formats

Merci beaucoup :)
J'essaie demain.
Ce 19:45h.
Assez pour aujourd'hui.

Salut
Jo

Offline

 

#8 2016-02-11 19:48:28

Genusstaucher
Member
2016-02-05
9

Re: PIWIGO 2.7.0 - Upload of more / all file formats

I've done it ;)
The upload function was perfekt, but the view on the gallery gives this kind of failures:

Warning: include(./include/category_default.inc.php): failed to open stream: No such file or directory in /var/www/web940/html/fotos/piwigo/index.php on line 323

Warning: include(./include/category_default.inc.php): failed to open stream: No such file or directory in /var/www/web940/html/fotos/piwigo/index.php on line 323

Warning: include(): Failed opening './include/category_default.inc.php' for inclusion (include_path='.:/opt/php/5.6.17/share/pear') in /var/www/web940/html/fotos/piwigo/index.php on line 323

Notice: Trying to get property of non-object in /var/www/web940/html/fotos/piwigo/index.php on line 329

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web940/html/fotos/piwigo/index.php:323) in /var/www/web940/html/fotos/piwigo/include/page_header.php on line 101

Hmmm, I think, there is no possibilty to construct a virtuel database with other file formats then pictures (jpg, tiff, png...). Am I wrong?

Last edited by Genusstaucher (2016-02-12 17:35:31)

Offline

 

#9 2016-02-13 16:44:48

Genusstaucher
Member
2016-02-05
9

Re: PIWIGO 2.7.0 - Upload of more / all file formats

:) Salut :)

Meanwhile I'm able to upload all formats! With a few plugins no problem, AND: withouzt Plugin, only PIWIGO an the local config

$conf['file_ext'] = array_merge(
  $conf['picture_ext'],
  array('pdf')
  );

$conf['upload_form_all_types'] = true;

is it possible without plugins :)
OK. But now I got another problem :(
When I go to the galery, the galery not show my uploaded pdfs. I got a few failures...

See
http://www.jmweb.de/fotos/piwigo/index.php?/category/31

OK. How will they shown? And: how will they open from a guest?

Offline

 

#10 2016-02-15 10:59:51

Genusstaucher
Member
2016-02-05
9

Re: PIWIGO 2.7.0 - Upload of more / all file formats

OK :) Meanwhile I installed a fresh and new piwigo and I updated my photos. So far so good.

With the plugin File Uploader I am able to upload pdf files into a physical album. What I need now is following:

1) the pdf files don't have a thumbnail. I created a few jpg for these pdfs, but I am not able to put it "together", if you know, what I mean. I'm not able to set the jpeg as a thumbnail for the pdf.

2) The guests on my website aren't able to download the pdf files, because they don't see them.

3) for 1) and 2) it is the same for avi / flv / videos. The guests are not able to a) download or better b) view directly.

Are there any solutions?

Regards
Jo
Genusstaucher

Piwigo latest
http://www.jmweb.de/piwigo/index.php?/category/3  for the "pdf's" (in the moment there is no pdf only multiple png pages) I try to get a testsetting of piwigi with wamp-server on my local computer to test some ideas...

Offline

 

#11 2016-02-15 11:07:54

Genusstaucher
Member
2016-02-05
9

Re: PIWIGO 2.7.0 - Upload of more / all file formats

Genusstaucher wrote:

3) for 1) and 2) it is the same for avi / flv / videos. The guests are not able to a) download or better b) view directly.

Done and solved. Create a new folder under piwigo, upload a flv or s.l.t. , synchronise, take the plugin charlies content, enable it, ready for watching :)

Offline

 

Board footer

Powered by FluxBB

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