Loading...
 
Architecture / Installation

Architecture / Installation


Re: File Galleries

posts: 1791 Catalan Countries

Hi Rick:

I'm still suffering from this issue, and I have some more information about it. The issue might be related to the combination of global and local permissions in that file gallery (at least in my case). Because with same user, same file, when I upload it to another file gallery, it does upload with no issues at all.

Both galleries should have enough local perms to allow uploading the file to a user with tiki_p_admin (plus a few specific permissions for the file gallery, either directly or inherited from registered group).

But in one case of file gallery, it fails (reproduced again), but in the other, it works. Weird.

Lets see (in case this makes sense for any one). Global perms for registered for file galleries are:

X Can download files (tiki_p_download_files)
X Can upload files (tiki_p_upload_files)
X Can view file galleries (tiki_p_view_file_gallery)
  Can admin file galleries (tiki_p_admin_file_galleries)
  Can assign perms to file gallery (tiki_p_assign_perm_file_gallery)
X Can upload zip files with files (tiki_p_batch_upload_files)
  Can create file galleries (tiki_p_create_file_galleries)
  Can edit a gallery file (tiki_p_edit_gallery_file)
  Can remove files (tiki_p_remove_files)
X Can view file galleries explorer (tiki_p_view_fgal_explorer)
X Can view file galleries path (tiki_p_view_fgal_path)


At the file gallery where it works, I have these local perms applied:

X Can download files (tiki_p_download_files)
  Can upload files (tiki_p_upload_files)
X Can view file galleries (tiki_p_view_file_gallery)
  Can admin file galleries (tiki_p_admin_file_galleries)
  Can assign perms to file gallery (tiki_p_assign_perm_file_gallery)
  Can upload zip files with files (tiki_p_batch_upload_files)
  Can create file galleries (tiki_p_create_file_galleries)
  Can edit a gallery file (tiki_p_edit_gallery_file)
  Can remove files (tiki_p_remove_files)
X Can view file galleries explorer (tiki_p_view_fgal_explorer)
X Can view file galleries path (tiki_p_view_fgal_path)


At the file gallery where it DOES NOT work, I have these local perms applied:

X Can download files (tiki_p_download_files)
X Can upload files (tiki_p_upload_files)
X Can view file galleries (tiki_p_view_file_gallery)
  Can admin file galleries (tiki_p_admin_file_galleries)
  Can assign perms to file gallery (tiki_p_assign_perm_file_gallery)
  Can upload zip files with files (tiki_p_batch_upload_files)
  Can create file galleries (tiki_p_create_file_galleries)
  Can edit a gallery file (tiki_p_edit_gallery_file)
  Can remove files (tiki_p_remove_files)
X Can view file galleries explorer (tiki_p_view_fgal_explorer)
X Can view file galleries path (tiki_p_view_fgal_path)


So the only difference seems to be "Can upload files (tiki_p_upload_files)", which is granted for registered, in the case of the file gallery where the jpg file upload DOESN'T work.

Can you try uploading your file to another file gallery with different combination of global and local permissions? (to see whether in your case the permissions are key to trigger this error)

Xavi

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.