• Resolved 5ulo

    (@5ulo)


    Hi, I found strange thing while importing 25k posts. Every imported image is saved to the upload/2018/03 directory… the old ones from 2009 too. So at this moment (25% done) the flat image direcotory contains around 60,000 images which is crazy.
    I tested that on another server with the same result.
    But if I upload the image manually it is sorted on the right place eg. uploads/2009/07
    Any advice how to achieve that? Because as I see at the end of the import there will be around 250.000 files in one directory.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @5ulo

    Every imported image is saved to the upload/2018/03 directory… the old ones from 2009 too.

    The images created by the import are new images to WordPress, so this would be expected behavior.

    You can use some custom code and our API to change the folder that they’re imported into – see the final example snippet here: https://github.com/soflyy/wp-all-import-action-reference/blob/master/all-import/wp_all_import_images_uploads_dir.php#L50.

    Or, alternatively, you could use a plugin like WP Offload S3 so that the images aren’t stored on your server at all.

    But if I upload the image manually it is sorted on the right place eg. uploads/2009/07

    Can you elaborate on how you’re doing this? By default, WordPress stores all newly uploaded images in the /uploads/{current year}/{current month} folder, so I’m not sure how this is happening.

    Thread Starter 5ulo

    (@5ulo)

    Thanks for helping! It was easier as I tought ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Imported images aren’t sorted as /year/month’ is closed to new replies.