simialbi / yii2-elfinder

This extension integrates the jQuery elFinder into yii2 framework
MIT License
7 stars 5 forks source link

permission and delete #18

Open paskuale75 opened 2 years ago

paskuale75 commented 2 years ago

Hi @simialbi what are the ideal permissions to set on the upload root folder? It often happens that you try to remove folders, the system confirms with a message but in reality it is not removed from the filesystem. thanks

simialbi commented 2 years ago

On what for a System are you? Unix? Windows?

paskuale75 commented 2 years ago

Users who upload content use windows, but when I tried (with Ubuntu) to remove from the web application it made me the same joke. thanks

simialbi commented 2 years ago

Which driver do you use? Local? Or FTP?

paskuale75 commented 2 years ago

I use 'Local'

simialbi commented 2 years ago

then change owner to the user who run's the apache or nginx (e.g. www-data)

paskuale75 commented 2 years ago

I gave maximum permissions (777 and www-data user) Schermata da 2022-02-11 21-07-40

simialbi commented 2 years ago

And deletion don't work? What sais the console? Any error?

paskuale75 commented 2 years ago

It execute rm command in payload I see it, but after it re-show the folder to me. 1) violet sign is a size command 2) red sign is a open command Schermata da 2022-02-12 07-43-44

paskuale75 commented 2 years ago

Here the 'rm' response... elfinder_rm_response

I noticed a very strange thing, the folder that I can't remove contains two files, if I remove them individually it removes them regularly, but if I then try to remove the emptied folder, no it keeps repeating it...

simialbi commented 2 years ago

And does not remove the folder?

paskuale75 commented 2 years ago

Not. I ask to user some details... it seems that the user (windows) creates a nested structure of folders (from windows) and then drags them into elfinder, and the folders are all systematically non-erasable...

simialbi commented 2 years ago

What's the owner of the directory which you're not able to delete? And with what permissions?

paskuale75 commented 2 years ago

owner is www-data with 777 permissions (ubuntu)

simialbi commented 2 years ago

Strange 😒

paskuale75 commented 2 years ago

Has elfinder ever been tested with operating systems other than linux ?

simialbi commented 2 years ago

Aye, should run on any OS

simialbi commented 2 years ago

What does the log say?

paskuale75 commented 2 years ago

Empty folder too, has problem with delete, as soon as I click on the trash button, the folder is no longer visible, but then if I refresh or recall the container folder, the removed folder comes back to life. I checked the filesystem in reality the folder always remains there and cannot be removed. Any suggestion ? Thanks Schermata da 2022-03-29 13-56-47

simialbi commented 2 years ago

Difficult to analyze without having a look into it. Would that be possible?

simialbi commented 2 years ago

Ciao Pasquale

Thanks for the video. Does not really help. By having a look into it i meant the possibility to debug, see the logs, dump the responses etc.

paskuale75 commented 2 years ago

Hi Simon, tell me how can I help you ? For understand the problem ?

simialbi commented 2 years ago

A direct access would be nice