I'm creating a json file and uploading it to the storage bucket, for some reason on the fs I see the file name as "<filename>.json.json, although its id is <filename>.json. Same behavior happens even when I upload a file from the console and give it the <filename>.json id. Is there a way to control that?
What does your code look like
ID does not affect the name
It also happens from the console itself. I upload a file, set its id and see it with a wrong name on the fs
ill share the code
with a wrong name on the fs What do you mean?
let jsonFilename = `${fileName}.json`
const jsonBlob = new Blob([contentString], { type: 'application/json' });
var jsonFile = new File([jsonBlob], jsonFilename);
console.log("this json file", jsonFilename);
await api.provider().storage.createFile(
Server.storageBucket,
jsonFilename,
jsonFile
).catch(err => {
console.log("err json filename", err)
});```
and this is with the web or node sdk?
^ this is when I uploaded from the console
web sdk
I'll mention that the file security and the encryption are set to off
cloud is working fine:
this was uploaded via the console
can you tell what's on the fs itself?
I think that when tryint to upload del.json.json is the same as del.json.json. may you try to upload del1.json ?
@Steven ?
what?
Are you uploading the same file again without deleting it?
In your cloud test you've uploaded "del.json.json" which is being saved on the fs with the same name as if you were saving "del.json". As example , try to upload "test.json"
Recommended threads
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.
- Failed to generate functions SSL
```appwrite-worker-certificates | Cannot renew domain (functions.domain.com) on attempt no. 9 certificate: Failed to verify domain DNS records. appwrite-worker...
- Dart 3.10 runtime on self-host 1.8.1
I added dart-3.10 runtime in .env file, applied the changes, but cannot see such option on console. is dart 3.10 not supported by self hosted 1.8.1? if not, whe...