Announcement

#1 2016-02-26 08:27:22

iconberg
Member
2016-02-24
20

Upload of other filetypes dont work, for example pdf or bmp

Hello,

we have following installation:
        Piwigo 2.7.4
Environment
        Operating system: Linux
        PHP: 5.6.14-0+deb8u1 (Show info) [2016-02-26 08:05:16]
        MySQL: 5.5.44-0+deb8u1 [2016-02-26 08:05:16]
        Graphics Library: ImageMagick 6.8.9-9

Used theme is "clear".

If we extend the config with the localfiles editor with

$conf['picture_ext'] = array('jpg','JPG','jpeg','JPEG','png','PNG','gif','GIF','pdf','PDF','bmp','BMP');

we can select the new filetypes and press upload but then it hangs with the upload bar.
We can see the file is uploaded to buffer.

Why it hangs and how to slove this?

additional infos:
-------------------------------------------------------------------------------------------------------------------

Also there seems to be a problem if we try to add new filetypes with

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

This does not work, we have to put the new file types into $conf['picture_ext'] or they dont show up in the theme and we cant selet them.

--------------------------------------------------------------------------------------------------------------------

If we upload an png and an bmp for example in one upload run,
nothing hangs, the png is uploaded successful with "1 photos uploaded"
the bmp just stays in buffer.

--------------------------------------------------------------------------------------------------------------------



greets
Rigoletto

Last edited by iconberg (2016-02-26 10:21:36)

Offline

 

#2 2016-02-29 08:51:58

iconberg
Member
2016-02-24
20

Re: Upload of other filetypes dont work, for example pdf or bmp

Hello,

if i try to upload a bmp i can track down the problem to a syntax error in JSON.parse, but i am out here of my knowledge now, any help from someone?

SyntaxError: JSON.parse: unexpected keyword at line 1 column 1 of the JSON data
TypeError: uploadCategory is null

greetz
Rigoletto

Last edited by iconberg (2016-02-29 08:58:22)

Offline

 

#3 2016-03-01 10:06:37

iconberg
Member
2016-02-24
20

Re: Upload of other filetypes dont work, for example pdf or bmp

Offline

 

Board footer

Powered by FluxBB

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