grindorliveaverage
TypeScript
at Client.call (/usr/local/server/src/function/node_modules/node-appwrite/lib/client.js:206:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async uploadChunk (/usr/local/server/src/function/node_modules/node-appwrite/lib/services/storage.js:383:24)
at async Storage.createFile (/usr/local/server/src/function/node_modules/node-appwrite/lib/services/storage.js:417:13)
at async Module.default (file:///usr/local/server/src/function/src/main.js:54:20)
at async execute (/usr/local/server/src/server.js:208:16)
at async action (/usr/local/server/src/server.js:232:7)
at async /usr/local/server/src/server.js:14:5``` i get this error from this code meant to use the returned array buffer make a tar file ```js
const result = await storage.getFileView('SID', 'FID');
const pack = tar.pack();
const buffer = Buffer.from(result);
pack.entry({ name: `file0.txt` }, buffer);
pack.finalize();
const chunks = [];
for await (const chunk of pack) {
chunks.push(chunk);
}
const tarBuffer = Buffer.concat(chunks);
const upload = await storage.createFile(config.storageId, ID.unique(), InputFile.fromBuffer(tarBuffer));```
TL;DR
Appwrite does not allow .tar file uploads and storage by default. The error is due to the file extension not being allowed. Recommended threads
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- Need Help with Google OAuth2 in Expo usi...
I'm learning React Native with Expo and trying to set up Google OAuth2 with Appwrite. I couldn't find any good docs or tutorials for this and my own attempt did...
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...