In the Import tab, if no filename is given, it's still possible to submit the form. The resulting error is a bit misleading: 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.
We should first check whether a file name was actually provided.
I am working on this . thanks :)
pull request https://github.com/phpmyadmin/phpmyadmin/pull/1015
Note that a filename can be provided either by "Browse your computer" or by the optional "Select from the web server upload directory".
Do we need to upload the file using AJAX or with simple submit action ?
Implemented in https://github.com/phpmyadmin/phpmyadmin/pull/1066