Bug #23146 See Comments

File Manager Sync does not create a record for files uploaded via FTP.

Version: 3.5.6 Reporter: qbrands

In the ExpressionEngine documentation here, it states that:

“When submitted, all allowed file types in the directory will be checked against the file records in the database. If there is no record in the database, one will be added.”

While this was certainly true in versions of ExpressionEngine prior to 3.0, I have not been able to get that to work correctly beyond 2.11. One used to be able to bulk upload files through FTP and synchronize them within the control panel, but that does not seem to be the case anymore. I have tested it in multiple environments on different installs so I do not believe this to be an isolated issue, thus why I’ve submitted the bug.

  • Can you provide the steps to reproduce on a clean install? And are you able to upload successfully with the native file upload tools?

    Derek Jones
    14th June, 2017 at 3:15pm
  • On a clean install, add a file directory and upload using the control panel (always successful), then go to the directory path via FTP and upload a file, navigate to the Files tab in the control panel and synchronize the file directory. Only the file uploaded through the control panel shows up, not the one uploaded via FTP.

    qbrands
    15th June, 2017 at 10:14am
  • Thank you, those are the correct steps, but this is not reproducible. Make sure that your group/owner of files via FTP are readable by PHP in your environment. When you add files and hit the synchronization tool, it should give you a file count for the directory. If it does not match the files you see via FTP (minus index.html), then more than likely the files are not readable by PHP. For instance, files owned by Apache/www vs. your user.

    Derek Jones
    15th June, 2017 at 10:45am
  • Thank you for the follow up. The thing is, this issue was not present in versions of Expression Engine 2.x using the same server setup. Surely this is a bug with the system all things being the same.

    qbrands
    16th June, 2017 at 1:54pm
  • We’re happy to treat it as a bug if it is reproducible, but it works on every environment I have tested, and no other users have reported the same. Can’t fix what I can’t see. smile If you’d like us to look at it on your environment, please put in a support ticket and we’d be happy to debug directly on your system.

    Derek Jones
    16th June, 2017 at 2:15pm

You must be signed in to comment on a bug report.

ExpressionEngine News

#eecms, #events, #releases