5

Sorry Balpha!

In SuperUser chat, the moment I click the upload button, it reposts the last picture I uploaded.

I am able to reproduce every single time.

I am guessing that refreshing/closing and reopening will clear the issue, so, I won't do that just yet in case I can be any help in finding out what is happening.

Here is a video

... I am around in Super User chat if there is anything I can do.

8
  • What version of Chrome are you using? This has come up for a few of us before, but I know when it happened to me balpha blamed my dev browser, heheh. Refreshing the tab will indeed fix the problem.
    – Tim Stone
    Commented Jun 10, 2011 at 17:12
  • 2
    So, am I to understand your Westie loves pringles? And why so much Jonas Brothers and Bieber Feverers in the Suggested Videos?
    – user1228
    Commented Jun 10, 2011 at 17:16
  • @Won't - can't comment about Jonas Brothers :/ The suggested thing is weird - my brothers videos (he does magic performances... edwardhilsum.com ) used to keep linking to strange sex videos! I think if you don't do meta data or anything, it just does random videos as the moment he typed about his act, they went ... But... my westie does love pringles! ... That was when he was just a few months old! Commented Jun 10, 2011 at 17:30
  • @Tim Stone - 11.0.696.71 Commented Jun 10, 2011 at 17:31
  • I was able to replicate the issue and started some speculating on what the root cause was, but I'm still really unsure. It does appear to be Chrome's fault, though.
    – Tim Stone
    Commented Jun 15, 2011 at 8:46
  • I'm still trying to figure out why it's doing what it's doing, but I think there might be a hack to work around it anyway. Let me know if it happens to you again, since there's something I want to independently verify if you don't mind testing.
    – Tim Stone
    Commented Jun 16, 2011 at 6:19
  • @Tim I've been having this for several versions of Chrome now, just never bothered to report because I'm on the Dev Channel
    – Ivo Flipse
    Commented Jun 24, 2011 at 10:28
  • @Ivo I could only reproduce this starting today
    – badp
    Commented Jun 24, 2011 at 10:46

1 Answer 1

10

This is a very ugly Chrome bug that causes the IFRAME that is the target for the image upload to immediately re-POST the previous request when it's added to the DOM.

I couldn't reliably reproduce it, until I found this very probably related Chrome bug report (it might also be related to these two WebKit bug reports, but I'm not certain about that).

Indeed, uploading an image -> going to a different room -> clicking "back" -> clicking "upload" immediately re-uploaded the old image.

Many thanks go to Tim Stone, who has spent quite some time debugging this issue and found a workaround: If name/id of the IFRAME are different each time, Chrome will not do the re-upload. So from now on, the IFRAME's name and id are unique every time (by including a timestamp as well as a random number).

5
  • I assume the fix isn't live yet, since I just had this problem again
    – Ivo Flipse
    Commented Jun 27, 2011 at 11:52
  • @IvoFlipse: It is live -- but you need the fresh JavaScript, so if you haven't reloaded the page since the deploy (which happend shortly before I posted this answer), you're still having the old behavior. I assume that's the case?
    – balpha StaffMod
    Commented Jun 27, 2011 at 11:55
  • Yes, I actually refreshed the page after it happened, because that somehow seemed to remedy the problem. So its probably gone now :-)
    – Ivo Flipse
    Commented Jun 27, 2011 at 12:55
  • Well done to both you and @Tim Stone! .... especially as it wasn't your problem! :) Thought you had forgotten about this. Commented Jun 28, 2011 at 0:43
  • ... will unmark if it comes back as @Ivo said. Commented Jun 28, 2011 at 0:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .