mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 19:05:54 +03:00
[GH-ISSUE #281] problem uploading files #203
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#203
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 @qwwwest on GitHub (Jan 10, 2020).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/281
tinyfilemanager uploading works well except when using it embedded...
define('FM_EMBED', true);then the uploading fails while saying everything was fine...
@prasathmani commented on GitHub (Jan 11, 2020):
#233
check folder has write permission
@qwwwest commented on GitHub (Jan 11, 2020):
I'm on Windows.
If I use TinyFileManager without embedding it I can upload in that folder. If I embed TinyFileManager It does not work anymore...
@qwwwest commented on GitHub (Jan 13, 2020):
@prasathmani !
I have found out why uploading fail in my case...
i use a .htaccess file to redirect virtual URL to my index.php.
My index.php display TinyFileManager for the URL 'admin/fm'.
now... the generated html by TinyFileManager point to my index.php instead of 'admin/fm'
so my index.html fail to load TinyFileManager...
I managed to solve this problem by changing TinyFileManager @ line 1083 :
by
and i use :
define('FM_SELF_URL', dirname($_SERVER['PHP_SELF']) . '/admin/fm');Is it a bug or a feature ?
Thanks for this great program :)
@prasathmani commented on GitHub (Jan 13, 2020):
@deivh great!
you can manage the path and URL by configuration,
@qwwwest commented on GitHub (Jan 13, 2020):
@prasathmani
I use TinyFileManager for my CMS to handle media files...
'/admin/fm' is not a real folder just a URL
if i try to configure this way i get :
Root path "C:/laragon/www/mempad/admin/fm" not found!
@prasathmani commented on GitHub (Jan 13, 2020):
okay, if you want to change the only URL use
$root_url. or your approachFM_SELF_URLalso fine@qwwwest commented on GitHub (Jan 13, 2020):
if I change only
$root_urlthen it generates URL like this :http://localhost/mempad/admin/fm/dev.jpg (which does not work)
my real "root folder" for uploading files is '/var/www/mempad/media/'
("http://localhost/mempad/media")
I think there is a problem using TinyFileManager with htaccess if we dont use my workaround
@ line 1083