-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
Can't delete a file if it wasn't assigned to a user or a group #9
Comments
i also can not delete files as a system administrator or other user. |
@strigga yes. you need to assign the file you want to delete to a user or a group and then delete it. |
Thank you. This works! So if i have 50 files and want to delete it i have to click on every single file - assign it to a user and after that i can delete it? |
My best guess is that you may upload files for other users and assign them whenever you want. Yes for the mass deletion :) |
r582 includes this fix. Closing the issue now. |
+1 |
Have you tried the latest version? r582 |
On r582 the problem still persists. As an admin, I cannot delete user files, whether they are assigned to users or not. As a user, I cannot delete my own files from my workspace. This is pretty essential functionality. Please help find a solution or workaround! |
Yes, the problem still persists. It does not delete the file(s) no matter what you do. Version r582 confirmed. |
It looks like that $file_id in manage_files.php at line 537 is referencing the wrong ID (from tbl_files_relations rather than tbl_files as expected by the delete function). My fix was to change line 537 to read:
I can't remember if that's all I did to fix this problem, but it's a start. Good luck. |
Do you have an error message? |
semaphorism - I was able to make just the change that you mentioned, and it fixed my issue. I was not able to delete ANY file before. Now I can. Thank you! |
We made the change (and it's manage-files.php, not manage_files.php) and it works great. Thank you so much! |
@semaphorism thank you for your solution. It worked! :D |
I'm not sure whether this is a bug or a feature but here it goes.
Although a confirmation message is shown, it seems we can't delete a file if we didn't assigned it to a user or a group beforehand.
Steps to reproduce it
Symptoms
There's no value attribute for the file's checkbox because the id comes from the files_relations table and we don't have any entry there...
And it stays that way during the whole deletion process until the confirmation message.
Possible solutions
The text was updated successfully, but these errors were encountered: