FIle and Image upload #14

Closed
wants to merge 2 commits into
from

Conversation

2 participants
@sakibmoon

File and image upload doesn't work in current version. I found the reason for that is the form name. I have edited it from 'profile-form-edit' to 'your-profile'.

I am working in wordpress 3.9.1 with buddypress version 2.1.1 and version 2.0.4 of this plugin. Just by changing this my file and plugin upload worked flawlessly.

DIsclaimer: This is my first time working with Buddypress and Buddypress-xprofile-custom-fields-type. I submitted change which works for me and me only. I didn't test with previous versions or anything.

sakibmoon added some commits Nov 20, 2014

Update Bxcft_Field_Type_Image.php
This is required for current version of buddypress.
Update Bxcft_Field_Type_File.php
This is required for file upload to be successful as buddypress changed it from 'profile-form-data' to 'your-profile'
@donmik

This comment has been minimized.

Show comment
Hide comment
@donmik

donmik Nov 20, 2014

Owner

I'm afraid this change only applies in your case, because the id of the form when you use buddypress defaults is "profile-edit-form" so if in your case it's "your-profile", this is probably because the theme you are using have changed this.

Owner

donmik commented Nov 20, 2014

I'm afraid this change only applies in your case, because the id of the form when you use buddypress defaults is "profile-edit-form" so if in your case it's "your-profile", this is probably because the theme you are using have changed this.

donmik added a commit that referenced this pull request Nov 21, 2014

= 2.0.5 =
* Image and File upload was not working when editing extended profile inside wordpress admin. Thanks to sakibmoon!
* #14
@donmik

This comment has been minimized.

Show comment
Hide comment
@donmik

donmik Nov 21, 2014

Owner

Ummm, I understand now, you are editing profile using wordpress admin and I was editing using public pages... So this is why I don't see the same form. Well, it's not usual to do this, this is because nobody see this error until today...xD.
Your code should solve the error on wordpress admin but then the public profile form should stop working.
With the new version 2.0.5, it will work always.

Thanks!

Owner

donmik commented Nov 21, 2014

Ummm, I understand now, you are editing profile using wordpress admin and I was editing using public pages... So this is why I don't see the same form. Well, it's not usual to do this, this is because nobody see this error until today...xD.
Your code should solve the error on wordpress admin but then the public profile form should stop working.
With the new version 2.0.5, it will work always.

Thanks!

@donmik donmik closed this Nov 21, 2014

@sakibmoon

This comment has been minimized.

Show comment
Hide comment
@sakibmoon

sakibmoon Nov 21, 2014

That's spot on. I never tried to upload from the public pages! Thanks for solving the issue so quickly.

That's spot on. I never tried to upload from the public pages! Thanks for solving the issue so quickly.

donmik pushed a commit that referenced this pull request Feb 2, 2015

atallos
= 2.0.5 =
* Image and File upload was not working when editing extended profile inside wordpress admin. Thanks to sakibmoon!
* #14

git-svn-id: http://plugins.svn.wordpress.org/buddypress-xprofile-custom-fields-type/trunk@1030095 b8457f37-d9ea-0310-8a92-e5e31aec5664
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment