Gallery: Image updating.

If you're having trouble using Context Free or don't understand the language, ask for help here.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
User avatar
zol
Posts: 40
Joined: Sun Mar 23, 2008 4:14 pm

Gallery: Image updating.

Post by zol »

The update form reached via the "edit" button on an existing design's page has fields for uploading an image file.
There is also a footnote:
‡ If you are not uploading a new PNG file or CFDG file for this entry update then do not click on the associated file buttons. The previously uploaded PNG or CFDG files will be retained if you do not upload a new one.
This suggests to me that uploading a new PNG file for an existing entry is supported.

I even thought I had done it once years ago, but repeated attempts from Opera and Firefox, caches cleared, have had no effect on the displayed image. Except that it always forces a fresh download of the old image under a new name (actually the old name, with incremented index in the query string).
I can think of good reasons why that functionality might be disabled, but I don't know whether it is, or if there is a fault somewhere.

Deleting entries or posting multiple versions also have their downsides, so I'm hoping it doesn't come to that.

User avatar
MtnViewJohn
Site Admin
Posts: 882
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Re: Gallery: Image updating.

Post by MtnViewJohn »

I just tried editing one of my entries and I saw two file upload controls, one for cfdg files and one for png files. Do you see one or two 'choose file' buttons?

User avatar
zol
Posts: 40
Joined: Sun Mar 23, 2008 4:14 pm

Re: Gallery: Image updating.

Post by zol »

Two. I see the same form used for uploading
except with a second footnote and "Update" in place of "Upload" in the page heading and submit button.

The controls are there, but when I attempt to update the image, all that changes is the <img src="..."> query string number.
I've just tried using the src URL with various simple query strings, and none make a difference or produce an error.

User avatar
MtnViewJohn
Site Admin
Posts: 882
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Re: Gallery: Image updating.

Post by MtnViewJohn »

I found the bug. We store the images on Amazon S3 and when you upload an updated image we set a flag indicating that the Amazon image is stale. This flag causes the site to source the image locally. Within 24 hours Amazon gets updated and the flag is cleared. The bug is that the flag wasn't being set, so the stale image on Amazon continued to be served.

ETA: I just cleared the Amazon S3 flag on all designs that could have been affected by this bug. Everything should be fixed up by 3am PST.

Post Reply