Fixing Image Upload Order (Race Condition Solved) - SteemX Development.

in Steem Dev10 hours ago

Hi everyone,

Gemini_Generated_Image_1btdef1btdef1btd.png

In last update, we have update the steem image uploading method but users are facing the order issue during image uploading, Images not uploaded with initial order that set during image selection. I also noticed this problem.

When users upload multiple images, the uploads run in parallel (which is good for speed), but the images were being inserted into the editor in a random order. This created a bad experience.

The Problem

Multiple images upload at the same time and faster uploads finish earlier. Images were inserted based on completion time, not selection order

So if a user selected:

  • Image A
  • Image B
  • Image C

They could end up with:

  • Image B
  • Image C
  • Image A

This is called a race condition.

Updated Solution

I changed the logic to make sure images are always inserted in the correct order.

Keep track of each images original index then store completed uploads in a temporary queue. Only insert images when their turn comes wait if earlier images are still uploading.

These updates are part of our ongoing effort to improve the platform. We will continue working to make everything better and more user-friendly.

Thank you for your support!

Stay tuned to @steemx.org for updates and get ready to watch your account like never before.


Please cast your witness Vote to bountyking5

Your support is required for @bountyking5 witness, a dedicated witness who has been instrumental in supporting STEEMX and other ongoing projects in the Steem ecosystem. Please consider to casting your witness vote.

Cc:
@rme
@steemchiller
@steemcurator01

Posted using SteemX

Sort:  

🎉 Congratulations!

Your post has been upvoted by the SteemX Team! 🚀

SteemX is a modern, user-friendly and powerful platform built for the Steem community.

🔗 Visit us: www.steemx.org

✅ Support our work — Vote for our witness: bountyking5

banner.jpg