Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Updating an image when the href filename stays the same does not use new image

ANSWERED

Hi all,

 

I have a clockface and I need to update an image. I get the image from our webserver, unfortunately when I save the new image to the private data I used the same name ;  the  clockface does not update the image it has in its cache.

 

Is there a way to get the clockface to use this new image without using a different name in the private data file?

 

Geoff

Yes I know I could just same with a different name, but hoping I can just invalidate the clock data

 

Works:

  1. Download image and save with "name A"
  2. Update the href
  3. Download image and save with "name B"
  4. Update the href

 

Does not work

  1. Download image and save with "name A"
  2. Update the href
  3. Download different image and save with "name A"
  4. Update the href

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

This is a known issue, but we do have a fix planned for this in the future. In your working example, don't forget to unlink the previous file, or you will eventually run out of storage space.

 

https://dev.fitbit.com/build/guides/file-system/#deleting-files

View best answer in original post

Best Answer
0 Votes
5 REPLIES 5

This is a known issue, but we do have a fix planned for this in the future. In your working example, don't forget to unlink the previous file, or you will eventually run out of storage space.

 

https://dev.fitbit.com/build/guides/file-system/#deleting-files

Best Answer
0 Votes

Do you have any news on this?

I'm running in the same issue.

Best Answer
0 Votes

@Schete wrote:

Do you have any news on this?

I'm running in the same issue.


Try using an intermediate image file. Set the href to point to a small black image momentarily, then point it back to your original file.

 

Best Answer

Thank you, nice workaround.

Best Answer
0 Votes

I am also running into the same issue.

 

Setting the href to an intermediate image does not seem to fix the issue.

 

I've been trying all sorts of things to try to get this to work but have run out of ideas.

 

Are there any other possible solutions for this?

Best Answer
0 Votes