mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-27 11:25:54 +03:00
[GH-ISSUE #293] Can create and delete folders but not rename #212
Labels
No labels
Feature
Feature
Is It Really an Issue?
Need More Info
Request
Security
bug
duplicate
enhancement
enhancement
help wanted
invalid
pull-request
question
suggestion
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tinyfilemanager#212
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yumyo on GitHub (Jan 22, 2020).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/293
The error is generic but given I can both create and delete (and open) it does not seem related to permissions, is it?
@yumyo commented on GitHub (Jan 22, 2020):
error_reporting to true does not help. Some info:
TFM Tiny File Manager 2.4.1
PHP 5.5.9-1ubuntu4.29 (fpm-fcgi)
[PHP Modules]
bcmath
bz2
calendar
cgi-fcgi
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick
json
libxml
mbstring
mhash
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
@yumyo commented on GitHub (Jan 22, 2020):
Also, can rename files but NOT folders, regardless they have been uploaded or created within TFM
@prasathmani commented on GitHub (Jan 23, 2020):
Even I'm not sure, mostly it related to permissions and environment related, try to change the folder permission
@yumyo commented on GitHub (Jan 23, 2020):
Thank you for your prompt reply @prasathmani
I'd agree it surely must be, tho it's quite strange. folders are on 777 at the moment but it's not helping. The only not so common thing in my setup might be that TinyFileManager (which is amazing by the way!) does just live in a folder of a domain.
So in my setup I have:
With this settings I am able to perform any operation except renaming.
However, if I set `$root_url = ''/upload";`` as it seems suggested elsewhere, trying to open any file results in a 404. Thus I guess the two variables above are correct in my case?
@prasathmani commented on GitHub (Jan 23, 2020):
correct configuration:
in 2.4.0 release, added some restriction to rename files, file name should not contain
'/?%*:|"<>'.@yumyo commented on GitHub (Jan 23, 2020):
If I set $root_url to upload, like:
trying to open any item results in a 404, where the URL is:
https://[DOMAIN-HERE]/uploadupload/uploads/test/10/10.html
Instead, if I set;
everything is correct and working and the URL is:
https://[DOMAIN-HERE]/upload/uploads/test/10/10.html
Well, everything except renaming folders ... renaming files works as stated before.
Owner:Group are the same, permissions still all set to 777
@swarfer commented on GitHub (Aug 27, 2020):
The problem is that folders generally do not have extensions so the check for allowed extensions fails.
I have added is_dir() to fm_rename() like this:
function fm_rename($old, $new)
{
$isFileAllowed = fm_is_valid_ext($new) || is_dir($old);
}
@soiqualang commented on GitHub (Oct 26, 2022):
Thanks, this's work!