rtMedia icon indicating copy to clipboard operation
rtMedia copied to clipboard

Uploader not working as expected

Open Utsav-Ladani opened this issue 2 years ago • 2 comments

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 upload button is also visible for all uploaders instead of one.

To Reproduce Steps to reproduce the behavior:

  1. Create a new post and add some media to the default album( album with id 1).
  2. 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]
    
  3. Now save the publish page.
  4. Open the page and click on the select your files button of the second uploader.
  5. 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 image

Test Environment Used

  • WordPress: Latest
  • BuddyPress: Latest
  • rtMedia: pre-release
  • Browser: Firefox, Chrome

Utsav-Ladani avatar Jul 31 '23 05:07 Utsav-Ladani

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

Utsav-Ladani avatar Aug 03 '23 11:08 Utsav-Ladani