When trying to import a dump file from the web server upload directory, the file is not imported, but an error is shown.
Steps to reproduce:
- Create a folder "upload" in the phpMyAdmin root directory.
- Add an SQL dump file to the new folder.
-
Add the following line to your config.inc.php file:
$cfg['UploadDir'] = 'upload';
-
Open a database, and switch to the "Import" tab.
- Mark the option "Select from the web server upload directory".
- Open the drop down, and pick the file added in step 2.
- At the bottom, click the "Go" button.
Expected result:
- The file is imported, and a success message is displayed afterwards.
Actual result:
- The following error message is shown, and the import is canceled:
No data was received to import. Either no file name was submitted,
or the file size exceeded the maximum size permitted by your PHP
configuration. See FAQ 1.16.