Title: Changing upload path
Last modified: July 24, 2018

---

# Changing upload path

 *  [jert87](https://wordpress.org/support/users/jert87/)
 * (@jert87)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/changing-upload-path-2/)
 * I want to change the upload path to a folder with userid, so each user uploads
   to its own folder.
 * Within wp_config i can’t access the function get_current_user_id() yet.
    So the
   wp_config define of variables is not helping.
 * I tried changing the upload_dir in wordpress with the upload_dir filter.
    This
   works within my server (wp-content/uploads/{userid}, but in S3 this is ignored.
 * Is it possible to apply the upload_dir filter also on the amazon s3 upload path?
   
   Or is there an own filter to use?

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [ianmjones](https://wordpress.org/support/users/ianmjones/)
 * (@ianmjones)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/changing-upload-path-2/#post-10550824)
 * WP Offload S3 does not exactly mirror the local path to S3 by default, it has
   its own settings for tuning where stuff goes on S3.
 * However, you could adjust the “Key” for uploads via the as3cf_object_meta filter.
 * Check out the [Tweaks plugin](https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront-tweaks/blob/3e83234e96f67b823ae94d27385cf9603d149c0b/amazon-s3-and-cloudfront-tweaks.php#L151)
   for details.

Viewing 1 replies (of 1 total)

The topic ‘Changing upload path’ is closed to new replies.

 * ![](https://ps.w.org/amazon-s3-and-cloudfront/assets/icon-256x256.jpg?rev=1809890)
 * [WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage](https://wordpress.org/plugins/amazon-s3-and-cloudfront/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-s3-and-cloudfront/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/reviews/)

## Tags

 * [Upload Path](https://wordpress.org/support/topic-tag/upload-path/)

 * 1 reply
 * 2 participants
 * Last reply from: [ianmjones](https://wordpress.org/support/users/ianmjones/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/changing-upload-path-2/#post-10550824)
 * Status: not resolved