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
- THE COLUMNS STUCK ON PROCESSING HOW DO I...
I HAVE SELF HOSTED THE APPWRITE ON VPS
- Impossible to create project via CLI?
Is it possible to create a new project via the appwrite CLI ? I need to create a few projects for something I'm working on and because i don't want to do it man...
- Understanding S3 setup with appwrite
Hey, i'm planning to change the storage from local to S3, tho i have some questions to see before starting the migration. 1. Does all the `/storage/<storage_ty...