Oddbean new post about | logout
 @nostr.build And error occurred: Error deleting file! 
 You need to activate your nsec extension for that page, ‘enable’ it in the upper right corner of your browser.

Also, if the file is older than 3-4 months, it will not work. 
 thanks, let me try. It is new picture I missed upload 😂 
 I will try on PC, I tried it via safari with Nostore extension in my iPhone and I think I allowed all authentication 
 Same error on my PC 
 I think it is enable for delete page.
https://image.nostr.build/d7794d3ec32eb73a45c43465efba6b1863ff91aa35832f1ffd0159433fc700af.jpg 
 Confirm it is enabled for this page. Mobile might be funky.. Should work on PC, we just tested it. Are we middinggn anything @The Fishcake🐶🐾 ? 
 Same error on my PC Firefox. This screeshot is from my PC. 
 Weird, should work if your extension is working.

If all else fails, DM me the link and we can delete it. 
 DM 
 If the link does not belong to your npub, then it would be impossible to delete. We only allow you to disassociate from the uploaded media if it is a duplicate, or delete the media if you own it. 
 I sure use the account which I uploaded the image delete the image. 

I know that 
 Please check that in the browser using the Developer Console and see the headers. We have x-owners-npub (or something like that) if it is properly authenticated when it was uploaded. 
 Thanks, will try and let you know when I am at home later 
 I meant for the media, not the webpage json request. 
 What I said was: check the headers of the file that you are trying to delete, and see if it has your npub listed as the owner. 
 Ok, seems not include any pubkey info

https://image.nostr.build/2da0e34f0cdad2291956d24f0774cb794ebed86014e9935dd932fa59fef418f1.jpg 
 This means that it was uploaded unauthenticated. Which client did you use to upload? 
 #nostrmo 
 Hmm, I thought they already authenticated their uploads. Do you know who is the dev for that client? 
 @DASHU 
 https://github.com/haorendashu/nostrmo/blob/9cc62c9e3f237f1c2e85f0f58681396f14c585cf/lib/provider/uploader.dart#L57

Tells me it uses nip96 which requires authentication. That is strange. Can you DM me the file name so I can check? 
 The NIP96 upload file is here:
https://github.com/haorendashu/nostr_sdk/blob/master/lib/upload/nip96_uploader.dart

I upload a test file and try to delete it.
1. Upload success.
2. Download success.
3. It seems first time i try to delete at https://nostr.build/delete/ it tell me *delete success* . 
4. But this file still can download.
5. And i try to delete this file again, it try me delete fail.

upload info:
file name: b89ad7e9d01d7002051847ac3762bb5b2191d9ae32b5df363d04545755892aa0.png
npub name: npub13jyr30u0x6uxzdcta0p2eh5dza0jhkglpp7mk3z7maej0ycamxgqw0y824 
 I tried using nostrmo from Mac desktop and was not able to detect authentication for the upload. I wonder if something is missing? 
 Have you change the image service to NIP96? If you select nostr.build upload service, it will try to use the old upload api.

https://image.nostr.build/15588a8ca6d59e88913b3516929426ea0fbbdf4acd31c87e6fc3ffa7dd069e62.jpg 
 I just used default one, so I guess that’s where the problem lies 
 Did you know that you could also pass nip98 header to the old api and achieve the same result? 
 Maybe i should change the default nostr.build upload method to nip96? 
 That’ll work too 
 If the file is a duplicate of the previously uploaded one then it will only delete your npub association 
 Yes, this file i had uploaded many times 🤣 
 lol, that explains it then 😂 
 The easiest way to verify if you fully own the upload is by checking media’s http headers. See examples for your file and mine. https://i.nostr.build/FioOg82pmTIii3we.jpg https://i.nostr.build/hBGRoOWlGsZAIZ57.jpg  
 Can you delete it for me? 
 Send me a DM please 
 Sent, thanks 
 Can you delete it for me? 
 Send me a DM please 
 Sent, thanks 
 The NIP96 upload file is here:
https://github.com/haorendashu/nostr_sdk/blob/master/lib/upload/nip96_uploader.dart

I upload a test file and try to delete it.
1. Upload success.
2. Download success.
3. It seems first time i try to delete at https://nostr.build/delete/ it tell me *delete success* . 
4. But this file still can download.
5. And i try to delete this file again, it try me delete fail.

upload info:
file name: b89ad7e9d01d7002051847ac3762bb5b2191d9ae32b5df363d04545755892aa0.png
npub name: npub13jyr30u0x6uxzdcta0p2eh5dza0jhkglpp7mk3z7maej0ycamxgqw0y824 
 I tried using nostrmo from Mac desktop and was not able to detect authentication for the upload. I wonder if something is missing? 
 Have you change the image service to NIP96? If you select nostr.build upload service, it will try to use the old upload api.

https://image.nostr.build/15588a8ca6d59e88913b3516929426ea0fbbdf4acd31c87e6fc3ffa7dd069e62.jpg 
 I just used default one, so I guess that’s where the problem lies 
 Did you know that you could also pass nip98 header to the old api and achieve the same result? 
 Maybe i should change the default nostr.build upload method to nip96? 
 That’ll work too 
 If the file is a duplicate of the previously uploaded one then it will only delete your npub association 
 Yes, this file i had uploaded many times 🤣 
 lol, that explains it then 😂 
 The easiest way to verify if you fully own the upload is by checking media’s http headers. See examples for your file and mine. https://i.nostr.build/FioOg82pmTIii3we.jpg https://i.nostr.build/hBGRoOWlGsZAIZ57.jpg