storage icon indicating copy to clipboard operation
storage copied to clipboard

Last modified timestamp will not update after update

Open mblog opened this issue 5 years ago • 2 comments

Bug report

Describe the bug

A replacment of a file with upload (upsert: true) or update will not update the last modified timestamp. The file itself has been updated.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

const avatarFile = event.target.files[0]
const { data, error } = await supabase
  .storage
  .from('avatars')
  .update('public/avatar1.png', avatarFile, {
    cacheControl: 3600,
    upsert: false
  })

Expected behavior

A replacement of a file should update the timestamp.

System information

supabase-js 1.22.0

mblog avatar Aug 19 '21 18:08 mblog

I ran into this today as well with 1.29.0

bruceharrison1984 avatar Dec 27 '21 16:12 bruceharrison1984

:tada: This issue has been resolved in version 0.16.6 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Jun 15 '22 03:06 github-actions[bot]