Announcement

  •  » Beta testing
  •  » 2.8.0RC2 upload of other file types fail

#1 2016-03-01 08:39:04

iconberg
Member
2016-02-24
20

2.8.0RC2 upload of other file types fail

Hello/Hi/Greetings,

we have upload problems with other file types in 2.7 so i tried the beta. Unfortanly the same error. Upload of other file types hangs due to a javascript error:

TypeError: a[c] is undefined
(aoa3yy.js:51:712)

SyntaxError: JSON.parse: unexpected keyword at line 1 column 1 of the JSON data
(jquery.min.js:5:15991)

TypeError: uploadCategory is null
(admin.php:464:1)


Piwigo version: 2.8.0RC2
Betriebssystem: Linux
PHP: 5.6.14-0+deb8u1 (Info anzeigen) [2016-03-01 08:17:19]
MySQL: 5.5.44-0+deb8u1 [2016-03-01 08:17:19]
Grafikbibliothek: ImageMagick 6.8.9-9
Piwigo URL: localhost

Any advise to slove or workaround?

greetz
Rigoletto

Offline

 

#2 2016-03-01 10:04:23

iconberg
Member
2016-02-24
20

Re: 2.8.0RC2 upload of other file types fail

WORKAROUND:

.bmp file upload is working if put in $conf['file_ext'] and $conf['upload_form_all_types'] is set to 'true'.

----------------------------------------------------------------------------------------------------
// picture_ext : file extensions for picture file, must be a subset of
// file_ext
$conf['picture_ext'] = array('jpg','JPG','jpeg','JPEG','png','PNG','gif','GIF');

// file_ext : file extensions (case sensitive) authorized
$conf['file_ext'] = array_merge(
  $conf['picture_ext'],
  array('tiff', 'tif', 'mpg','zip','avi','mp3','ogg','pdf','bmp')
  );

$conf['upload_form_all_types'] = true;
----------------------------------------------------------------------------------------------------

Please improve the "config_default.inc.php", the parameter 'upload_form_all_types' should be placed under 'file_ext'.
And a hint if a picture file format dont work in 'picture_ext' it could be placed in 'file_ext' so only upload will work instead of an failed upload.

greetz
Rigoletto

Offline

 
  •  » Beta testing
  •  » 2.8.0RC2 upload of other file types fail

Board footer

Powered by FluxBB

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