rtMedia
rtMedia copied to clipboard
Uploader not working as expected
Describe the bug
- The uploaded item is shown at the wrong place in UI when multiple uploaders are on the same page.
- If there are two uploaders and we upload the item to the second using the uploader, then it is shown under the first uploader section.
Start uploadbutton is also visible for all uploaders instead of one.
To Reproduce Steps to reproduce the behavior:
- Create a new post and add some media to the default album( album with id
1). - Add the following content to the page:
[rtmedia_gallery global=true album_id=1 uploader=true media_title=true] [rtmedia_gallery global=true album_id=1 uploader=true media_title=true] - Now save the publish page.
- Open the page and click on the
select your filesbutton of the second uploader. - Select a file from the file manager popup, and a selected file added to the first uploader section
Expected behavior
- Added items should be shown after their respective uploader section.
- The uploader button is only visible for the only uploader for which the media is placed into the queue to upload the item.
Screenshots or Visual
Test Environment Used
- WordPress: Latest
- BuddyPress: Latest
- rtMedia: pre-release
- Browser: Firefox, Chrome
Please check these PRs to ensure the changes:
- https://github.com/rtCamp/rtMedia/pull/1986
- https://github.com/rtCamp/rtMedia-Pro/pull/1381
The following pages will be affected by these PRs:
- All Activity page
- Media tabs
- Simple page OR post with rtmedia_gallery/rtmedia_uploader shortcode
CC: @pavanpatil1, @kjnanda