Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User cannot upload images #66

Open
ionutaron opened this issue Feb 7, 2022 · 6 comments
Open

User cannot upload images #66

ionutaron opened this issue Feb 7, 2022 · 6 comments

Comments

@ionutaron
Copy link

ionutaron commented Feb 7, 2022

I have Piwigo installed in a jail in a TrueNAS machine, with the community plugin installed. Here is the environment:

  • Piwigo 12.2.0
  • OS: FreeBSD
  • PHP: 7.3.33
  • MySQL: 5.5.5-10.5.13-MariaDB [2022-02-07 15:36:23]
  • Graphics Library: External ImageMagick 7.1.0-13
  • Community plugin version 12.b

I have a regular user named ionut that has access to the whole gallery, with high trust privileges and ability to create sub-albums. No limits on how many photos or disk space. This user is part of a group called Upload that has permissions for all the albums loaded (I've loaded some test albums while logged as administrator)

However, when I log in as ionut, I don't have the ability to upload pictures (there is no button that allows me to do that).

Any help would be appreciated.

Thanks.

@jonathanjuursema
Copy link

I'm having the same issues.

Piwigo 12.3.0
Operating system: Linux
PHP: 7.4.23
MySQL: 5.5.5-10.5.12-MariaDB-log
Graphics Library: ImageMagick 7.0.11-13

@ionutaron did you ever manage to get this to work?

@ionutaron
Copy link
Author

@jonathanjuursema no, still not working...

@fru1tstand
Copy link

Any updates on this? I am facing the same thing

Piwigo 13.1.0
PHP 7.4.3

@chris-fogel-intermetro-net
Copy link

chris-fogel-intermetro-net commented Jul 12, 2023

Same Issue. I have to assign a user full administrator privileges to allow uploading.

[edit] Found my Piwigo version:
Piwigo 13.8.0
Operating system: Linux
PHP: 8.1.13
MySQL: 8.0.33-0ubuntu0.20.04.2
Graphics Library: GD 2.3.3
[end edit]

Community 12.c

@chris-fogel-intermetro-net

PS: Found the maintenanceHere's what I did to get around it:

I set all users as Status = "Administrator" and Privacy level = "Admins" in the GUI.

Then I went and edited the /var/www/html/_data/templates_c/longvariablecharacters.file.menubar.tpl.php

Modified line 228 ( in this version ) from:

if ( ( isset($_smarty_tpl->tpl_vars['U_ADMIN']->value) ) ) {?>

to:

if ( ( isset($_smarty_tpl->tpl_vars['U_ADMIN']->value) ) and ( $_smarty_tpl->tpl_vars['USERNAME']->value === 'adminusernamehere' ) ) {?>

It's a hack I know... but now the piwigo android client will allow users to upload files with community.

@IntegrousFenceAndDeck
Copy link

I'm having the same issue that a non admin user is not able to upload in the Piwigo NG android app. It does not show the upload icon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants