<p>You could add a custom asset field for the users' profile images and hide the default one in the CP.</p>

<p>Here's a plugin to do this: <a href="https://github.com/lindseydiloreto/craft-cpcss" rel="nofollow">Control Panel CSS</a> by Lindsey D</p>

CC BY-SA 3.0
2014-07-24T11:55:27.000Z
Hackish, but not such a bad idea.
Marcus Scheller
CC BY-SA 3.0
2014-07-24T11:54:51.140Z
2014-07-24T11:54:51.140Z
carlcs
<p>Profile photos are saved to <code>craft/storage/userphotos/</code> by default. </p>

<p>I don't know if you can change the path of <code>userphotos</code> specifically, but what you can do is to change the path of <code>craft/storage/</code> to your liking by adding this to your <code>index.php</code>:</p>

<pre class="lang-php prettyprint-override"><code>define('CRAFT_STORAGE_PATH', realpath(dirname(__FILE__) . "/../assets/storage").'/');
</code></pre>

<p>Other interesting path constants that you can overwrite like this are:</p>

<ul>
<li><code>CRAFT_CONFIG_PATH</code></li>
<li><code>CRAFT_PLUGINS_PATH</code></li>
<li><code>CRAFT_TEMPLATES_PATH</code></li>
<li><code>CRAFT_TRANSLATIONS_PATH</code></li>
</ul>

CC BY-SA 3.0
2014-07-24T11:27:47.220Z
(waited to long to edit the above comment)

That’s not exactly what i am aiming at though. I would like to treat userphotos the same way regular assets are being handled. That includes initial transforms at upload which i don’t want. Plus i would rather not have my visitors being able to figure out the system the site is running on by looking up the image path. That’s a requirement right now.

I just could add another asset-field to the users field layout but that would result in a UI conflict since there would be two photo settings.
Marcus Scheller
CC BY-SA 3.0
2014-07-24T11:54:19.397Z
Yeah I knew that this is not exactly what you were after, @Marcus ;)
carlcs
CC BY-SA 3.0
2014-07-24T11:10:03.880Z
2014-07-24T11:10:03.880Z
carlcs
<p>Is it possible to change the default location users upload their profile photos to? Right now they are stored in <code>/admin/resources/userphotos/</code> which for me is not preferable for some reasons. I’d rather have them somewhere in <code>html/img/member</code> or similar.</p>

<users><user-profile>
Change the location of the user photos
# Change the location of the user photos

(Asked by: username_0 on 2014-07-24)

Is it possible to change the default location users upload their profile photos to? Right now they are stored in `/admin/resources/userphotos/` which for me is not preferable for some reasons. I’d rather have them somewhere in `html/img/member` or similar.

**Tags:** users, user-profile


---

## 2 answers

### Answer by username_1 on 2014-07-24. Score: 4 | Accepted answer

You could add a custom asset field for the users' profile images and hide the default one in the CP.

Here's a plugin to do this: [Control Panel CSS](https://github.com/lindseydiloreto/craft-cpcss) by Lindsey D

> **Comments:**
> **username_0**: Hackish, but not such a bad idea.  

---

### Answer by username_1 on 2014-07-24. Score: 2

Profile photos are saved to craft/storage/userphotos/ by default. 
I don't know if you can change the path of userphotos specifically, but what you can do is to change the path of craft/storage/ to your liking by adding this to your index.php:
define('CRAFT_STORAGE_PATH', realpath(dirname(__FILE__) . "/../assets/storage").'/');

Other interesting path constants that you can overwrite like this are:

CRAFT_CONFIG_PATH
CRAFT_PLUGINS_PATH
CRAFT_TEMPLATES_PATH
CRAFT_TRANSLATIONS_PATH

> **Comments:**
> **username_0**: (waited to long to edit the above comment)  That’s not exactly what i am aiming at though. I would like to treat userphotos the same way regular assets are being handled. That includes initial transforms at upload which i don’t want. Plus i would rather not have my visitors being able to figure out the system the site is running on by looking up the image path. That’s a requirement right now.  I just could add another asset-field to the users field layout but that would result in a UI conflict since there would be two photo settings.  
> **username_1**: Yeah I knew that this is not exactly what you were after, @Marcus ;)  

---

