[GH-ISSUE #864] URL Upload is uploading files with 600 permission #575

Open
opened 2026-03-02 15:59:55 +03:00 by kerem · 0 comments
Owner

Originally created by @dotcomUNDERGROUND on GitHub (Oct 8, 2022).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/864

URL Upload is uploading files with 600 permission.

File uploads are uploading with the correct 644. Issue is only with URL upload.

As I workaround I converted the code:

        if ($success) {
            $success = rename($temp_file, get_file_path());
        }

To:

        if ($success) {
            chmod($temp_file, 0644); // fix chmod
            $success = rename($temp_file, get_file_path());
        }
Originally created by @dotcomUNDERGROUND on GitHub (Oct 8, 2022). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/864 URL Upload is uploading files with 600 permission. File uploads are uploading with the correct 644. Issue is only with URL upload. As I workaround I converted the code: ``` if ($success) { $success = rename($temp_file, get_file_path()); } ``` To: ``` if ($success) { chmod($temp_file, 0644); // fix chmod $success = rename($temp_file, get_file_path()); } ```
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#575
No description provided.