[GH-ISSUE #1215] Can't rename a file #774

Closed
opened 2026-03-02 16:01:22 +03:00 by kerem · 2 comments
Owner

Originally created by @Owned67 on GitHub (Aug 5, 2024).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1215

hello, i can create, delete everything but cannot rename a file...

error:
Error while renaming from myfile.json to Testmyfile.json
edit, add other try:
Error while renaming from myfile.json to Test.json

on config.php, ive added (ive try with .json but its same):
`// Allowed file extensions for create and rename files
// e.g. 'txt,html,css,js'
$allowed_file_extensions = 'json';

// Allowed file extensions for upload files
// e.g. 'gif,png,jpg,html,txt'
$allowed_upload_extensions = 'json';`

Ive looked on developper console but no error...

using php 7.4

fileinfo, iconv, zip and mbstring are enabled

if someone have a suggestion...

thanks

Originally created by @Owned67 on GitHub (Aug 5, 2024). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1215 hello, i can create, delete everything but cannot rename a file... error: Error while renaming from myfile.json to Testmyfile.json edit, add other try: Error while renaming from myfile.json to Test.json on config.php, ive added (ive try with .json but its same): `// Allowed file extensions for create and rename files // e.g. 'txt,html,css,js' $allowed_file_extensions = 'json'; // Allowed file extensions for upload files // e.g. 'gif,png,jpg,html,txt' $allowed_upload_extensions = 'json';` Ive looked on developper console but no error... using php 7.4 > fileinfo, iconv, zip and mbstring are enabled if someone have a suggestion... thanks
kerem closed this issue 2026-03-02 16:01:22 +03:00
Author
Owner

@Owned67 commented on GitHub (Aug 5, 2024):

Solved... need to set on tinyfilemanager.php and config.php, idk why using a config.php so? maybe im not update? ^^

<!-- gh-comment-id:2268623817 --> @Owned67 commented on GitHub (Aug 5, 2024): Solved... need to set on tinyfilemanager.php and config.php, idk why using a config.php so? maybe im not update? ^^
Author
Owner

@zorrobiwan commented on GitHub (Aug 5, 2024):

Leave main file so you can update it with new releases. Use config.php to overwrite config from main file.

<!-- gh-comment-id:2268671609 --> @zorrobiwan commented on GitHub (Aug 5, 2024): Leave main file so you can update it with new releases. Use config.php to overwrite config from main file.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#774
No description provided.