Upload ends with success but file not listed
-
Hi Enzo, thank you for your plugin.
As stated in the topic the upload process works but then no file is listed in the folder.
I checked your code and I think I have found a bug: you use the $path variable in upload_file.php before you actually define its value in anac-xml-admin.php.
Moving the row
require(plugin_dir_path(__FILE__) . 'upload_file.php');
from line 65 to line 98 in anac-xml-admin.php (after you have correctly set the path) solve the problem.
Please confirm this bug and fix in order to keep it working for next release.
Ciao and thank you for the very good Job!
—- FOR ITALIANS —-
Grazie per il Plugin Enzo.
Come ho scritto nell’oggetto all’upload del file il salvataggio viene confermato ma il file caricato non viene mostrato nell’elenco (nè appare nella cartella fisica).Esaminando il codice ho visto che il realtà la variabile $path nel file upload_file.php viene utilizzata prima che ne sia definito il valore nel file anac-xml-admin.php.
Spostando il codice
require(plugin_dir_path(__FILE__) . 'upload_file.php');
dalla riga 65 alla linea 98 in anac-xml-admin.php (dopo cioè che $path viene correttamente valorizzato) il problema viene risolto.Se potessi verificare confermando il bug in modo da rendere il fix permanente nelle prossime release te ne sarei grato.
Ciao e grazie per l’ottimo lavoro!
- The topic ‘Upload ends with success but file not listed’ is closed to new replies.