craftsmancoding / assetmanager

Asset Manager for MODX Revolution
36 stars 15 forks source link

Import Folder of Assets #21

Open fireproofsocks opened 10 years ago

fireproofsocks commented 10 years ago

The Asset Manager should have a CMP page for importing assets from a folder. The use-case is that a user uploads a bunch of assets via FTP/SSH to a folder on their site. Then they log into the MODX manager and open this CMP. They select this folder and click "Import".

There should be an option for whether they want to move or copy the assets.

Once this form is submitted, the script should walk through the directory and import each asset by moving or copying it into position and creating a database record (just like when a user uploads a file in the manager). See the assets class' "fromFile" method.