User Avatar upload with Amazon S3

You are here : Home / User Avatar upload with Amazon S3

open
Public
Good or Bad - Rate our Support

Hello,

I am attempting to user your User Avatar Pro plugin to upload avatars to our S3 distribution, but it is causing errors.

When uploading an image, the url is malformed, and thus showing up as a broken image.

For example, uploading an image to our site tries to retrieve this url:
http://d/wp-user-avatar/cache/avatar1496928020.png

even though the site is http://dev.ds-lms.org.

Some small investigation into your codeset makes me think the problem is in this block in wpua_upload_action_callback().


if ( is_multisite() ) {
$pos = strpos( $upload_dir['basedir'],'uploads' );
$wpua_upload_dir = substr( $upload_dir['basedir'],0,($pos + 7) ).'/wp-user-avatar/';
$pos_url = strpos( $upload_dir['baseurl'],'uploads' );
$wpua_upload_url = substr( $upload_dir['baseurl'],0,($pos_url + 8) ).'/wp-user-avatar/';
} else {
$wpua_upload_dir = $upload_dir['basedir'].'/wp-user-avatar/';
$wpua_upload_url = $upload_dir['baseurl'].'/wp-user-avatar/';
}

Our site is multisite, by the way.

Please let us know what we can do to resolve this.

Thank you

Public
Hello,
Are you in latest version 4.1.2. Please send us your wp login details at support@flippercode.com so we can check it at your end and resolve it.
Thanks
#1
Public
We are currently on 4.1.0. I will work on getting you login credentials for our beta site, and will send them to that address. We'll also test to see if updating the plugin will help. Thanks.
#2
Public
Hello,
I have sent you mail regarding this issue. Please check it.

Thanks
#3

Please login or Register to Submit Answer

Customize Product according to your requirements?

We will be glad to discuss any of your needs related to our wordpress plugins . if any of functionality you'd like to see in products, you can reach us by via email hello@flippercode.com.