Hello,
I'd like to report a usability issue I encountered when sending messages with relatively large attachments.
Currently, when I send such a message, it appears dynamically in the interface, but the attachment does not show up immediately. It only becomes visible after manually refreshing the page.
This delay—likely due to the upload time—creates a confusing user experience, as it gives the impression that the attachment wasn't sent properly.
A possible improvement would be to display a visual indicator showing that the file is still uploading, or to delay displaying the message until the attachment has been fully processed.
Thank you in advance for looking into this!
Best regards,
Don't worry, I have several PDF files >15MB on my PC, I will try them. Thanks Arsalan
Thanks Melo,
I beleive the issue exists when image is being compressed and message is created already. Can you try to upload dummy this 15MB PDF file and see?
Don't worry, Arsalan. I'll manage on my own. I only reported the problem to help improve the product.
Ok i see what do you mean, the message object is created before the image is fully uploaded and it appeared to other user without attachment because its not saved.
You can open a report on github and i will find a solution
website: https://intobeehive.com/
account1: [email protected]
psw: azerty
account2: [email protected]
psw: azerty
"The improvement should be made here in the script:"
<script>
Ossn.SendMessage(<?php echo $user->guid;?>);
$(document).ready(function () {
setInterval(function () {
Ossn.getMessages('<?php echo $user->username;?>', '<?php echo $user->guid;?>');
}, 5000);
Ossn.message_scrollMove(<?php echo $user->guid;?>);
});
</script>
or in
Ossn.getMessages
"The line Ossn.getMessages('<?php echo $user->username;?>', '<?php echo $user->guid;?>'); is called every 5 seconds, but it fetches new messages without checking whether the upload has finished. The 5-second interval is not sufficient for files larger than 10MB."
You can send your website URL and dummy account for checking and also second dummy account. I will try to upload 10MB photo and see
I am using OSSN version 7.6, in its free, raw, and native form, without any modifications or added components.
~10MB is not a large files, Images are of these sizes. There must be some issue that need to be checked by analyzing the request and seeing any error. Also are you using native image upload in messages or any 3rd party component? and which OSSN version you are using?
Please note that the attachment may display correctly on the sender’s side, but not on the recipient’s side.
The file size is 9.1 MB.
I haven’t checked the XHTTP request logs in the browser when sending messages, as the code works fine with smaller files.
Also, the log file does not contain any errors.
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)