Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloaded files 0ko and preview blank with Mysql (with ftp no problem) #2883

Closed
Nounours13 opened this issue Mar 29, 2019 · 3 comments
Closed

Comments

@Nounours13
Copy link
Contributor

Hi,
When i use Mysql connector I can do anythink. I can upload file also but the only problem, is for download file (or make a preview).
If i make a double click (or right click and download) the file is downloaded but it's blank (0Ko).
I've no error on javascript console and also on php (I've error_reporting(-1)) and no error also on mysql (I've enabled the query log and there is no error on Query SELECT content FROM files WHERE id=78 for example)
The only preview that work is for the txt file but if I download this file it make also a 0 Ko file.
I've changed the configuration to FTP and in this mode no problem. All is good.

If anybody have an idea where is my mistake. Thanks

PS: PHP 7.2.7 - Mysql 5.7.11 (My database is on utf8 -- UTF-8 Unicode utf8_general_ci) - Codeigniter 3.1.10 - Jquery 3.3.1 . Tested on Windows 10 (ver 1809) and Ubuntu 18.10

@nao-pon
Copy link
Member

nao-pon commented Mar 31, 2019

@Nounours13 I found typo while checking the source file.

Line 670 of php/elFinderVolumeMySQL.class.php
$fp = $this->tmbPath
Change to
$fp = $this->tmpPath
Please try to fix it. Are there any changes in the results?

@Nounours13
Copy link
Contributor Author

Hi Nao-pon,
Thanks a lot, this is the solution.
Now Elfinder works at 100%.

Have a got day !!!

@nao-pon nao-pon closed this as completed in 4656d20 Apr 1, 2019
@nao-pon
Copy link
Member

nao-pon commented Apr 1, 2019

@Nounours13 Thank you for verifying! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants