Closed LavaToaster closed 1 month ago
Good catch. The returned URLs won't work, but you're right they probably shouldn't be returned at all
@markflorkowski Thanks for the quick fix.
Potentially related, are customIds reusable after being deleted? The script I'm debugging was using this as a way of checking for file existence, so now that this works I'm seeing 500 errors uploading to uploadthing. Once I changed the custom ids it was no longer erroring out.
Ah, I think this is related. We do not enforce uniqueness on customIds, and you are probably running into a conflict when reusing a key. Deleted file records are eventually cleaned up, but it is only done after files have been deleted for >1 week.
I'll have to think about how we can better support reuse of custom ids. cc @juliusmarminge
I understand that this issue may be closed if it should be filed in another category
My issue
Hello,
It seems when files are deleted, you can still request for their URLs and the server will respond.
Reproduction:
The above should work for AppId
lf37ku1yq5