Opened 17 years ago
Closed 17 years ago
#2111 closed Bug (invalid)
File upload problem when using tilde in path
Reported by: | Atul | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | File Browser | Version: | |
Keywords: | Pending WorksForMe | Cc: | ai4u@… |
Description
I have a site on IP and the DNS is not resolved on Linux server using PHP . It is like : http://an.I.P.Address/~username
When I use FCKEDITOR and go to File Manager it shows Permission Denied and would not let me upload the files/images .
However I have the "image" folder on public_html with 777 permission.
As soon as the DNS is resolved the problem goes away automatically .
Any help will be appreciated
Change History (4)
comment:1 Changed 17 years ago by
Keywords: | Pending WorksForMe added |
---|---|
Priority: | High → Normal |
comment:2 Changed 17 years ago by
Thanks for the Inputs . Can you please inform what should I write in these becuase my Server Guys say that In preview mode(using tilde) you should use Absolute Path and not the Relative Path .
My Absolute web path is :
and my Document Root when DNS is resolved is : "/home/username/public_html" and without DNS resolved is : "/usr/local/apache/htdocs"
At present my settings are :
$ConfigUserFilesPath? = '/' ; $ConfigUserFilesAbsolutePath? = ;
I tried writing $ConfigUserFilesAbsolutePath? = 'http://IPADDRESS/~username/' ; But it gave me wrror that Directory "http:/" cannot be created.
Please help.
comment:3 Changed 17 years ago by
Set $Config['UserFilesAbsolutePath']
to the absolute server path (not the url), e.g.:
/usr/local/apache/htdocs/
The error occurs probably due to your server side configuration. Check lines 38 and 44 in config.php (editor\filemanager\connectors\php\config.php) and see what path is set in:
$Config['UserFilesPath'] = '/' ;
and$Config['UserFilesAbsolutePath'] = '' ;
If you'll set them the properly it's mostly possible that the bug will no longer occur. Let us know what are your results.