Yeah, I told him about that 2 years ago but...Steve wrote: Tue Mar 29, 2022 3:30 pm looking at the code on GitHub. I’m no expert but the op should read these pages.
no-no
in my opinion as well. Never reported, let check asap and i will return in reply.I had a member using a iphone who uploaded images but could not rotate the images due to a error showing as below where he uploaded to image but when he went to rotate it showed no attachment found , I used my Samsung phone with no issue at all.
may just do not use, write your own*looking at the code on GitHub. I’m no expert but the op should read these pages.
It will help you.
i told u the same if not wrong, and gave full access, but the answer was: too much complicate.Yeah, I told him about that 2 years ago but
I don't remember, though.axe70 wrote: Tue Mar 29, 2022 8:05 pm i told u the same if not wrong, and gave full access, but the answer was: too much complicate.
Never reported, let check asap and i will return in reply.I had a member using a iphone who uploaded images but could not rotate the images due to a error showing as below where he uploaded to image but when he went to rotate it showed no attachment found , I used my Samsung phone with no issue at all.
So, i will to try to fix this aspect soon, even i do not own a MAC to debug, but only an iPAD. That yes, seem to have problem with the javascript so that it make it fail the image rotation.mrix2000 wrote: Tue Mar 29, 2022 2:33 pm I had a member using a iphone who uploaded images but could not rotate the images due to a error showing as below where he uploaded to image but when he went to rotate it showed no attachment found , I used my Samsung phone with no issue at all.
Code: Select all
// It is required also the forum id of this attach, to know if this user can or not execute things here
// TODO: unique query to retrieve all data
$sql = 'SELECT T.*, A.*
FROM ' . ATTACHMENTS_TABLE . " AS A
JOIN " . TOPICS_TABLE . " AS T on T.topic_id = A.topic_id
WHERE A.attach_id = $attach_id";
$result = $db->sql_query($sql);
$attachment = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
if (!$attachment) // may it is an attachment just uploaded and a topic do not exist
{
$sql = 'SELECT *
FROM ' . ATTACHMENTS_TABLE . "
WHERE attach_id = $attach_id";
$result = $db->sql_query($sql);
$attachment = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
}
Code: Select all
var attachID = attach.src.split('id='); // not correctly working when sid appended
v = pu.replace(/id\=[0-9]+/gi, 'id='+fnew_id); // not correctly working when sid appended
Code: Select all
// change data-attach-id to the actual one and build his new object
$( "tr.attach-row[data-attach-id=\'"+fid+"\'" ).each(function () {
Code: Select all
// change data-attach-id to the actual one and build his new object
$( "tr.attach-row[data-attach-id=\'"+fid+"\']" ).each(function () {