What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

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.

share|improve this question
    
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 Jun 10 '11 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? –  Won't Jun 10 '11 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! –  William Hilsum Jun 10 '11 at 17:30
    
@Tim Stone - 11.0.696.71 –  William Hilsum Jun 10 '11 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 Jun 15 '11 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 Jun 16 '11 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 Jun 24 '11 at 10:28
    
@Ivo I could only reproduce this starting today –  badp Jun 24 '11 at 10:46

1 Answer 1

up vote 10 down vote accepted

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).

share|improve this answer
    
I assume the fix isn't live yet, since I just had this problem again –  Ivo Flipse Jun 27 '11 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 Jun 27 '11 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 Jun 27 '11 at 12:55
    
Well done to both you and @Tim Stone! .... especially as it wasn't your problem! :) Thought you had forgotten about this. –  William Hilsum Jun 28 '11 at 0:43
    
... will unmark if it comes back as @Ivo said. –  William Hilsum Jun 28 '11 at 0:43

You must log in to answer this question.

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