On Sun, Mar 26, 2017 at 8:37 PM, Brian Wolff <[email protected]> wrote:
> You cant just copy files, the db records need to be added to. You should use
> tge importImages.php maintenance script which will copy them over and create
> db records.
>
> The directory structure is md5 of the filename but you should not create
> that yourself.
>
> Note there can be security implications of zip files as they can easily also
> be jar files.

Thanks Brian.

I have one file to import:

    # ls -Al wiki-import/
    total 4
    -rw-r--r-- 1 noloader noloader 2759 Mar 26 18:28 RC6-CBC-Filter.zip

Then, as root:

    # php /var/www/html/w/maintenance/importImages.php
--extensions=zip wiki-import/
Import Images

    No suitable files could be found for import.

I also tried running from maintenance/ and using the full path to <dir>:

    USAGE: php importImages.php [options] <dir>

Any ideas on what may be going wrong?

Thanks again.

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to